mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix update (#7833)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user