Commit 5dca3eff authored by 李维's avatar 李维

Bug fix

parent 28a68d4b
......@@ -117,6 +117,7 @@ export default class GameLogic {
if(!this.g_enableClick) {
return
}
this.g_cartoon.playAudio("按钮");
this.g_cartoon.tweenChange(btn_restart.node, {scaleX: 0, scaleY: 0}, 0.2, _=>{
this.enableClick("Restart")
this.restartGame();
......@@ -128,6 +129,7 @@ export default class GameLogic {
if(!this.g_enableClick) {
return
}
this.g_cartoon.playAudio("按钮");
this.g_cartoon.tweenChange(btn_start.node, {scaleX: 0, scaleY: 0}, 0.2, _=>{
this.enableClick("start")
if(this.nextQuestion()) {
......@@ -766,6 +768,12 @@ export default class GameLogic {
}
showStar(currentStarIdx, callback) {
if(this.g_formData.dataArray.length==0) {
if(callback) {
callback()
}
return
}
if (!currentStarIdx) {
currentStarIdx = 0;
}
......
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