Commit b30a8eb2 authored by haiyoucuv's avatar haiyoucuv

init

parent 010d2595
...@@ -19,7 +19,7 @@ export class SucPanel extends Panel { ...@@ -19,7 +19,7 @@ export class SucPanel extends Panel {
onLoad() { onLoad() {
super.onLoad(); super.onLoad();
this.okBtn.on(Button.EventType.CLICK, this.ok, this); this.okBtn.on(Button.EventType.CLICK, this.ok, this);
this.closeBtn.on(Button.EventType.CLICK, this.cancel, this); this.closeBtn.on(Button.EventType.CLICK, this.close, this);
} }
start(): void { start(): void {
...@@ -27,9 +27,10 @@ export class SucPanel extends Panel { ...@@ -27,9 +27,10 @@ export class SucPanel extends Panel {
this.boxNum.string = `挑战宝箱*${this.data.boxNum}`; this.boxNum.string = `挑战宝箱*${this.data.boxNum}`;
} }
cancel = () => { close = () => {
AudioMgr.ins.playOneShot(AudioClipName.button_ok); AudioMgr.ins.playOneShot(AudioClipName.button_ok);
this.hidePanel(); this.hidePanel();
changeScene(HomeScene);
} }
ok = () => { ok = () => {
......
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