Commit 2d11e844 authored by Guo Yuhang's avatar Guo Yuhang

add:finish taget

Signed-off-by: Guo Yuhang's avatar郭宇航 <guoyuhang@iplayabc.com>
parent ae6007f1
...@@ -438,6 +438,7 @@ cc.Class({ ...@@ -438,6 +438,7 @@ cc.Class({
} }
playAudioByUrl(this.data.end_audio, () => { playAudioByUrl(this.data.end_audio, () => {
console.log('game finish'); console.log('game finish');
onHomeworkFinish();
}) })
// return new Promise((resolve,reject) => { // return new Promise((resolve,reject) => {
// setTimeout(() => { // setTimeout(() => {
......
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