Commit 26650b88 authored by huoshizhe's avatar huoshizhe

feat:

parent 1a082355
...@@ -299,8 +299,10 @@ cc.Class({ ...@@ -299,8 +299,10 @@ 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) {
if (!this.front) {
this.showFire() this.showFire()
} }
}
}); });
}); });
}, },
...@@ -334,7 +336,12 @@ cc.Class({ ...@@ -334,7 +336,12 @@ cc.Class({
fired: false, fired: false,
showFire() { showFire() {
cc.tween(this.node)
.delay(1)
.call(() => {
onHomeworkFinish(); 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