Commit bb651de9 authored by limingzhe's avatar limingzhe

fix: debug

parent 3efc8a0a
......@@ -67,9 +67,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
// this.initEvent();
// this.gameStart();
// this.showBgLightAction();
this.initEvent();
this.gameStart();
this.showBgLightAction();
}
protected onDestroy(): void {
pg.event.clear();
......@@ -132,9 +132,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (Game.getIns().title) {
// cc.find("layout_info/bg_title/title", this.node).getComponent(cc.Label).string = Game.getIns().title;
}
// if (Game.getIns().bgAudio || Game.getIns().bgAudio != "") {
// this.btn_audio_on.active = true;
// }
}
initEvent() {
this.btn_audio_off.on(cc.Node.EventType.TOUCH_END, this.onAudioOff, this);
......
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