* 查找实体 * @param componentTypes 组件类型 * @returns 实体数组
(...componentTypes: ComponentType[])
| 67 | * @returns 实体数组 |
| 68 | */ |
| 69 | public find(...componentTypes: ComponentType[]): readonly Entity[] { |
| 70 | return this.querySystem.queryAll(...componentTypes).entities; |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * 查找第一个匹配的实体 |