fix update (#7833)

This commit is contained in:
江战
2020-11-20 11:23:50 +08:00
committed by GitHub
parent 6ee798e475
commit f47a7b7183
+1 -1
View File
@@ -44,7 +44,7 @@ export class CCFactory extends BaseFactory implements ISchedulable {
const eventManager = new CCArmatureDisplay();
this._dragonBones = new DragonBones(eventManager);
if (!JSB && !EDITOR && director.getScheduler()) {
if (!EDITOR && director.getScheduler()) {
game.on(Game.EVENT_RESTART, this.initUpdate, this);
this.initUpdate();
}