Commit 220e494a authored by limingzhe's avatar limingzhe

fix: debug

parent 41b5b3bc
...@@ -949,12 +949,18 @@ cc.Class({ ...@@ -949,12 +949,18 @@ cc.Class({
delayCall(0.4, () => { delayCall(0.4, () => {
if (this.isDestroy) {
return;
}
this.showGroupEndAnima(); this.showGroupEndAnima();
this.playWordAudio(); this.playWordAudio();
this.wrongLetterLeave(); this.wrongLetterLeave();
}) })
delayCall(1, () => { delayCall(1, () => {
if (this.isDestroy) {
return;
}
this.showBigStar(); this.showBigStar();
}) })
} }
...@@ -1009,6 +1015,9 @@ cc.Class({ ...@@ -1009,6 +1015,9 @@ cc.Class({
}, },
checkGameEnd() { checkGameEnd() {
if (this.isDestroy) {
return;
}
this.groupIndex++; this.groupIndex++;
if (!this.data.groupArr[this.groupIndex]) { if (!this.data.groupArr[this.groupIndex]) {
...@@ -2323,5 +2332,8 @@ cc.Class({ ...@@ -2323,5 +2332,8 @@ cc.Class({
}); });
}, },
onDestroy() {
this.isDestroy = true;
}
}); });
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