From 0f45f255647a184b82cc2f5ba7d177d0f76ca0f2 Mon Sep 17 00:00:00 2001 From: minggo Date: Sat, 11 May 2024 15:08:18 +0800 Subject: [PATCH] simplify logic (#16974) --- cocos/game/director.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cocos/game/director.ts b/cocos/game/director.ts index 57e0a706c82..7974081b176 100644 --- a/cocos/game/director.ts +++ b/cocos/game/director.ts @@ -220,15 +220,6 @@ export class Director extends EventTarget { this._systems = []; } - /** - * @en Calculates delta time since last time it was called, the result is saved to an internal property. - * @zh 计算从上一帧到现在的时间间隔,结果保存在私有属性中 - * @deprecated since v3.3.0 no need to use it anymore - */ - public calculateDeltaTime (now: any): void { - // do nothing - } - /** * @en End the life of director in the next frame * @zh 执行完当前帧后停止 director 的执行 @@ -248,9 +239,6 @@ export class Director extends EventTarget { * 如果想要更彻底得暂停游戏,包含渲染,音频和事件,请使用 `game.pause` 。 */ public pause (): void { - if (this._paused) { - return; - } this._paused = true; } @@ -527,9 +515,6 @@ export class Director extends EventTarget { * @zh 恢复暂停场景的游戏逻辑,如果当前场景没有暂停将没任何事情发生。 */ public resume (): void { - if (!this._paused) { - return; - } this._paused = false; }