声明 func HasComponent(target entity, componentID Type) bool go 参数 输入 名称 类型 描述 目标 entity 目标实体 组件类型ID Type 组件类型 返回 类型 描述 Bool 是否存在