Commit 00c6dec5 authored by 范雪寒's avatar 范雪寒

feat: homeworkfinish

parent 11f2a75f
...@@ -172,6 +172,15 @@ var game = cc.Class({ ...@@ -172,6 +172,15 @@ var game = cc.Class({
g.speaker.inst.playEffect(g.enum.E_Audio.Flowers); g.speaker.inst.playEffect(g.enum.E_Audio.Flowers);
g.effect.inst.showEffect2(); g.effect.inst.showEffect2();
this.btnRestart.active = true; this.btnRestart.active = true;
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent.role == 'student') {
middleLayerComponent.onHomeworkFinish(() => { });
}
} else {
console.log('onHomeworkFinish');
}
} else { } else {
this.InitQuestion(); this.InitQuestion();
} }
......
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