Commit c37d2411 authored by 章红平's avatar 章红平

提交

parent ce174b21
...@@ -295,7 +295,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -295,7 +295,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.clearntervals(); this.clearntervals();
if(this.questionIndex<(this.data.questions.length-1)){ if(this.questionIndex<(this.data.questions.length-1)){
this.questionIndex++ this.questionIndex++
this.onClickRestart() this.overN.active=false;
this.initGameData();
this.initCards();
this.tipN.active = false;
let children = this.cardParentN.children;
for (let i = 0; i < children.length; i++) {
children[i].getComponent("card").asyncDoFlip(() => {
if (i == children.length - 1) this.startWatch();
})
}
}else{ }else{
this.gameOver(true) this.gameOver(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