Commit 26650b88 authored by huoshizhe's avatar huoshizhe

feat:

parent 1a082355
...@@ -299,7 +299,9 @@ cc.Class({ ...@@ -299,7 +299,9 @@ cc.Class({
this.audioId = null this.audioId = null
this.playAnim.play('stopAudio') this.playAnim.play('stopAudio')
if (this.curPage == this.data.length - 1) { if (this.curPage == this.data.length - 1) {
this.showFire() if (!this.front) {
this.showFire()
}
} }
}); });
}); });
...@@ -334,7 +336,12 @@ cc.Class({ ...@@ -334,7 +336,12 @@ cc.Class({
fired: false, fired: false,
showFire() { showFire() {
onHomeworkFinish(); cc.tween(this.node)
.delay(1)
.call(() => {
onHomeworkFinish();
})
.start();
return return
if (this.fired) return if (this.fired) return
this.fired = true this.fired = 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