* @zh 更新游戏逻辑 * @en Update game logic * * @zh 此方法应该在游戏引擎的更新循环中调用。会自动更新全局服务和当前场景。 * @en This method should be called in the game engine's update loop. Automatically updates global services and current scene. * * @param deltaTime - @zh 外部引擎提供的帧时间间隔(秒)@en Frame delta time i
(deltaTime: number)
| 421 | * ``` |
| 422 | */ |
| 423 | public static update(deltaTime: number): void { |
| 424 | if (!this._instance) { |
| 425 | Core._logger.warn('Core实例未创建,请先调用Core.create()'); |
| 426 | return; |
| 427 | } |
| 428 | |
| 429 | this._instance.updateInternal(deltaTime); |
| 430 | } |
| 431 | |
| 432 | |
| 433 | /** |
nothing calls this directly
no test coverage detected