Commit 7a39e9e3 authored by 范雪寒's avatar 范雪寒

feat:

parent 9701841a
...@@ -22,13 +22,26 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -22,13 +22,26 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
async onLoadEnd() { async onLoadEnd() {
console.log('NJ_game_select 汪汪汪 1');
await this.initData(); await this.initData();
console.log('NJ_game_select 汪汪汪 2');
this.updateView(); this.updateView();
console.log('NJ_game_select 汪汪汪 3');
this.initListener(); this.initListener();
console.log('NJ_game_select 汪汪汪 4');
await this.startStep1(); if (this.step == 0) {
console.log('NJ_game_select 汪汪汪 5');
await this.startStep1();
} else {
console.log('NJ_game_select 汪汪汪 6');
await asyncDelay(1);
}
console.log('NJ_game_select 汪汪汪 7');
this.updateView(); this.updateView();
console.log('NJ_game_select 汪汪汪 8');
await this.startStep2(); await this.startStep2();
console.log('NJ_game_select 汪汪汪 9');
} }
async startStep1() { async startStep1() {
......
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