[Feature] TweenSystem class adds GameView mode (#7374)

This commit is contained in:
GengineJS
2020-09-14 17:58:27 +08:00
committed by GitHub
parent 3384e300a4
commit bec0b86ee2
+2 -1
View File
@@ -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);
}
}