mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
[Feature] TweenSystem class adds GameView mode (#7374)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import { System, Director, director } from "../core";
|
||||
import { ActionManager } from "./actions/action-manager";
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { legacyCC } from "../core/global-exports";
|
||||
|
||||
/**
|
||||
* @en
|
||||
@@ -50,7 +51,7 @@ export class TweenSystem extends System {
|
||||
* @param dt 间隔时间
|
||||
*/
|
||||
postUpdate (dt: number) {
|
||||
if (!EDITOR || this._executeInEditMode) {
|
||||
if (!EDITOR || legacyCC.GAME_VIEW || this._executeInEditMode) {
|
||||
this.actionMgr.update(dt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user