Commit d7dc4adc authored by limingzhe's avatar limingzhe

fix: debug

parent 59dc7684
...@@ -18,15 +18,21 @@ export default class NewClass extends middleLayerBase { ...@@ -18,15 +18,21 @@ export default class NewClass extends middleLayerBase {
// 统一释放异步资源的方法 // 统一释放异步资源的方法
async onLoad() { async onLoad() {
console.log(" jj_f onLoad .... 1");
initAir(this); initAir(this);
this.reWriteAir(); this.reWriteAir();
this.role = 'student'; this.role = 'student';
console.log(" jj_f onLoad .... 2");
// (<any>window).courseware.getEngineInfo(); // (<any>window).courseware.getEngineInfo();
} }
async start() { async start() {
console.log(" jj_f start .... 1");
this.node.zIndex = 9999; this.node.zIndex = 9999;
cc.game.addPersistRootNode(this.node); cc.game.addPersistRootNode(this.node);
global.middleLayer = cc.find('middleLayer').getComponent('middleLayer'); global.middleLayer = cc.find('middleLayer').getComponent('middleLayer');
...@@ -76,6 +82,8 @@ export default class NewClass extends middleLayerBase { ...@@ -76,6 +82,8 @@ export default class NewClass extends middleLayerBase {
this.initListener(); this.initListener();
console.log(" jj_f start .... 2");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment