Commit c08c9f47 authored by chenzihui's avatar chenzihui

1

parent 72f8022e
...@@ -497,6 +497,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -497,6 +497,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.hideWhiteNode(); this.hideWhiteNode();
this.moveOutPlane(); this.moveOutPlane();
},0.3) },0.3)
console.log("答对的题目数量" + this.rightQuestion);
} }
reviewFail(){ reviewFail(){
...@@ -577,6 +579,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -577,6 +579,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
gameEnd(){ gameEnd(){
console.log("答对的题目数量" + this.rightQuestion);
if(this.rightQuestion >= this.data.questions.length){ if(this.rightQuestion >= this.data.questions.length){
this.allWinEnd.node.active = true; this.allWinEnd.node.active = true;
this.allWinEnd.playAnimation('newAnimation', 1); this.allWinEnd.playAnimation('newAnimation', 1);
......
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