|
@@ -73,7 +73,7 @@ export default class Scene extends cc.Component {
|
|
this.initUI();
|
|
this.initUI();
|
|
await this.initData();
|
|
await this.initData();
|
|
common.log("场景加载完成,等待进入游戏层");
|
|
common.log("场景加载完成,等待进入游戏层");
|
|
- if (common.isDebug) {
|
|
|
|
|
|
+ if (common.debugTpye == 1) {
|
|
this.nodePageMap.active = false;
|
|
this.nodePageMap.active = false;
|
|
this.addPrefab(common.getUnitNum(), common.getPageNum());
|
|
this.addPrefab(common.getUnitNum(), common.getPageNum());
|
|
}
|
|
}
|
|
@@ -158,7 +158,7 @@ export default class Scene extends cc.Component {
|
|
|
|
|
|
this.nodeShow = cc.instantiate(prefab);
|
|
this.nodeShow = cc.instantiate(prefab);
|
|
this.node.addChild(this.nodeShow, CConst.ZORDER_GAME);
|
|
this.node.addChild(this.nodeShow, CConst.ZORDER_GAME);
|
|
- this.node.getChildByName('bg').active = true;
|
|
|
|
|
|
+ this.node.getChildByName('bg').active = false;
|
|
|
|
|
|
this.resetBtnNext(true);
|
|
this.resetBtnNext(true);
|
|
}
|
|
}
|
|
@@ -179,15 +179,15 @@ export default class Scene extends cc.Component {
|
|
}
|
|
}
|
|
|
|
|
|
resetBtnNext(show) {
|
|
resetBtnNext(show) {
|
|
- if (common.isDebug) {
|
|
|
|
- this.btnNext.active = true;
|
|
|
|
- }
|
|
|
|
- else{
|
|
|
|
|
|
+ if (common.debugTpye == 0) {
|
|
this.btnNext.active = false;// 显示下一步按钮
|
|
this.btnNext.active = false;// 显示下一步按钮
|
|
if (!show) return;
|
|
if (!show) return;
|
|
let gameOne = common.getGameFormLocal();
|
|
let gameOne = common.getGameFormLocal();
|
|
this.btnNext.active = Number(gameOne) >= 0;
|
|
this.btnNext.active = Number(gameOne) >= 0;
|
|
}
|
|
}
|
|
|
|
+ else{
|
|
|
|
+ this.btnNext.active = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|