* 移除全局System
(system: IGlobalSystem)
| 316 | * 移除全局System |
| 317 | */ |
| 318 | public removeGlobalSystem(system: IGlobalSystem): boolean { |
| 319 | const index = this._globalSystems.indexOf(system); |
| 320 | if (index === -1) { |
| 321 | return false; |
| 322 | } |
| 323 | |
| 324 | this._globalSystems.splice(index, 1); |
| 325 | system.reset?.(); |
| 326 | |
| 327 | logger.debug(`从World '${this.name}' 中移除全局System: ${system.name}`); |
| 328 | return true; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * 获取全局System |
no test coverage detected