Commit 9aecdded authored by limingzhe's avatar limingzhe

fix: debug

parent 772f6373
......@@ -327,6 +327,9 @@ cc.Class({
cc.tween(this)
.delay(0.3)
.call(() => {
if (this.isDestroy) {
return;
}
this.showPenguin();
})
.start();
......@@ -428,6 +431,9 @@ cc.Class({
cc.tween(this)
.delay(0.3)
.call(() => {
if (this.isDestroy) {
return;
}
this.showOnePenguin();
})
.start();
......@@ -567,6 +573,9 @@ cc.Class({
cc.tween(this)
.delay(1)
.call(() => {
if (this.isDestroy) {
return;
}
this.showOnePenguin();
})
.start();
......@@ -656,6 +665,9 @@ cc.Class({
.delay(0.6)
.to(0.8, { scale: 0 }, { easing: 'quadOut' })
.call(() => {
if (this.isDestroy) {
return;
}
this.checkGameEnd();
})
.start();
......@@ -696,6 +708,9 @@ cc.Class({
}
await asyncDelay(1);
if (this.isDestroy) {
return;
}
this.initCurGroup();
......@@ -710,6 +725,9 @@ cc.Class({
cc.tween(this)
.delay(0.2)
.call(() => {
if (this.isDestroy) {
return;
}
onHomeworkFinish();
this.showRestartBtn();
})
......@@ -870,10 +888,16 @@ cc.Class({
.to(moveTime, { y: 120 }, { easing: 'quadInOut' })
.delay(standTime)
.call(() => {
if (this.isDestroy) {
return;
}
hidePanel();
})
.to(moveTime, { y: downY }, { easing: 'quadInOut' })
.call(() => {
if (this.isDestroy) {
return;
}
penguin.active = false;
penguin.penguin.active = true;
penguin.wrong.active = false;
......@@ -892,7 +916,9 @@ cc.Class({
cc.tween(this)
.delay(nextTime)
.call(() => {
if (this.isDestroy) {
return;
}
if (!this.isRightDuration) {
this.showOnePenguin();
}
......@@ -1504,5 +1530,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