Commit 2cc81e82 authored by wildfirecode's avatar wildfirecode

1

parent 768e24a8
...@@ -4,7 +4,8 @@ export default class PlayScene extends PlaySceneBase { ...@@ -4,7 +4,8 @@ export default class PlayScene extends PlaySceneBase {
testBtn: eui.Button; testBtn: eui.Button;
initEvents() { initEvents() {
this.testBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.testBtn.once(egret.TouchEvent.TOUCH_TAP, () => {
this.testBtn.parent.removeChild(this.testBtn);
this.score = 10; this.score = 10;
this.sendSubmit(); this.sendSubmit();
}, this) }, 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