Commit 1a210fbe authored by limingzhe's avatar limingzhe

fix: 开始点击骰子报错

parent a25f89b0
......@@ -66,6 +66,7 @@ export class PlayComponent implements OnInit, OnDestroy {
canTouch =true;
curPic;
private isStart: boolean;
@HostListener('window:resize', ['$event'])
onResize(event) {
......@@ -605,7 +606,7 @@ initImg() {
// this.mapScale = this.canvasHeight / this.canvasBaseH;
this.renderArr = [];
this.isStart = false;
......@@ -803,6 +804,7 @@ bgLayer
}
//点击开始按钮,骰子竖直跳下来,卡片弹出来
if (!this.isStart) {
if (this.checkClickTarget(this.stn)&&(this.b==0)) {
this.canTouch=false;
......@@ -814,8 +816,12 @@ bgLayer
}, 1600);
// return;
this.isStart = true;
}
return;
}
//点击重新开始按钮
if (this.checkClickTarget(this.retn)&&(this.b==1)) {
this.canTouch=false;
......
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