* 从场景中删除EntitySystem处理器 * @param processor 要删除的处理器
(processor: EntitySystem)
| 1206 | * @param processor 要删除的处理器 |
| 1207 | */ |
| 1208 | public removeEntityProcessor(processor: EntitySystem): void { |
| 1209 | const constructor = processor.constructor as ServiceType<EntitySystem>; |
| 1210 | |
| 1211 | this._services.unregister(constructor); |
| 1212 | this.markSystemsOrderDirty(); |
| 1213 | this.removeSystemFromIndex(processor); |
| 1214 | processor.reset(); |
| 1215 | } |
| 1216 | |
| 1217 | /** |
| 1218 | * 从场景中删除系统(removeEntityProcessor的别名) |
no test coverage detected