Commit ded3a0a7 authored by LMZ's avatar LMZ

fix: 重玩按钮 按不动

parent 7461a249
......@@ -929,10 +929,12 @@ export class PlayComponent implements OnInit, OnDestroy {
if (this.checkClickTarget(this.restartBtn.bg)) {
if (this.restartBtn.curStatus.alpha < 1) {
if (this.restartBtn.isHide) {
return;
}
this.restartBtn.isHide = true;
this.canTouch = false;
this.restartBtn.click(() => {
......@@ -1113,6 +1115,7 @@ export class PlayComponent implements OnInit, OnDestroy {
removeItemFromArr(this.endRenderArr, cover);
this.restartBtn.resetStatus();
this.restartBtn.isHide = false;
this.endRenderArr.push(this.restartBtn.bg);
this.restartBtn.bg.x = (this.canvasWidth - this.restartBtn.bg.width) / 2;
......
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