Commit 2fcd99db by Mike Zhu

fix 连续点击 start

parent 5add77ce
...@@ -71,6 +71,7 @@ class RoomScene extends egret.Sprite { ...@@ -71,6 +71,7 @@ class RoomScene extends egret.Sprite {
this.startLabel.bold = true this.startLabel.bold = true
this.startLabel.text = '3' this.startLabel.text = '3'
this.startLabel.size = 50 this.startLabel.size = 50
this.startLabel.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.startHandler, this)
const timer = setInterval(() => { const timer = setInterval(() => {
if (this.startLabel.text == '1') { if (this.startLabel.text == '1') {
this.startLabel.size = this.startLabel.size + 20 this.startLabel.size = this.startLabel.size + 20
......
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