@ives_xxz/framework 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ export default class FWEngineManager extends FWManager implements FW.EngineManag
11
11
  onDestroy(): void {
12
12
  cc.game.off(cc.game.EVENT_SHOW, this.onAppShow, this);
13
13
  cc.game.off(cc.game.EVENT_HIDE, this.onAppHide, this);
14
- cc.game.off(cc.game.EVENT_GAME_INITED, this.onCreatorInited, this);
14
+ cc.game.off(cc.game.EVENT_GAME_INITED, this.onEngineInited, this);
15
15
  }
16
16
 
17
17
  restart() {
@@ -46,12 +46,13 @@ export default class FWEngineManager extends FWManager implements FW.EngineManag
46
46
  private registerCCCSystemEvent() {
47
47
  cc.game.on(cc.game.EVENT_SHOW, this.onAppShow, this);
48
48
  cc.game.on(cc.game.EVENT_HIDE, this.onAppHide, this);
49
- cc.game.on(cc.game.EVENT_GAME_INITED, this.onCreatorInited, this);
49
+ cc.game.on(cc.game.EVENT_ENGINE_INITED, this.onEngineInited, this);
50
50
  }
51
51
 
52
- private onCreatorInited() {
52
+ private onEngineInited() {
53
53
  FW.Entry.timeMgr.scheduleOnce(() => {
54
54
  this.launchScene = cc.director.getScene()?.name || 'launchScene';
55
+ FW.Log.debug('初始启动场景:', this.launchScene);
55
56
  });
56
57
  }
57
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": ["123456"],