Commit bb651de9 authored by limingzhe's avatar limingzhe

fix: debug

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