聲明 func HasComponent(target entity, componentID Type) bool go 參數 輸入 名稱 類型 描述 目標 entity 目標實體 組件類型 ID Type 組件類型 返回 類型 描述 Bool 是否存在