Commit b7be153b authored by liujiangnan's avatar liujiangnan

feat: 翻页

parent 97d9e2db
...@@ -155,9 +155,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -155,9 +155,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playAudio('end'); this.playAudio('end');
onHomeworkFinish(); onHomeworkFinish();
this.hideGuns(); this.hideGuns();
const BtnRestart = cc.find('Canvas/bg/BtnRestart');
BtnRestart.active = true; // TODO 上报成绩,现在这里没采集成绩,所以后续再实现
BtnRestart.opacity = 255;
window["courseware"].nextPage();
} }
_status = null _status = null
async gameStart() { async gameStart() {
...@@ -389,9 +391,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -389,9 +391,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const currentQuestion = this.data.questionList[this._status.currentQuestionIdx]; const currentQuestion = this.data.questionList[this._status.currentQuestionIdx];
this.updateRightNumber(); this.updateRightNumber();
if (this._status.currentRightNumber >= currentQuestion.rigthNumber) { if (this._status.currentRightNumber >= currentQuestion.rigthNumber) {
this.log("打完了=============") this.log("打完了=============")
this.stopShowBalls(); this.stopShowBalls();
await asyncDelay(2); await asyncDelay(2);
......
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