Commit ef209f46 authored by linzhiguo's avatar linzhiguo

+ 打错过题,不给贴纸

parent 24ff06f3
...@@ -290,28 +290,17 @@ cc.Class({ ...@@ -290,28 +290,17 @@ cc.Class({
item._recount_timer.stop(); item._recount_timer.stop();
item._recount_timer = null; item._recount_timer = null;
} }
this._can_hitted = false;
if (i != this._correct_index){ if (i != this._correct_index){
console.log('hit err'); console.log('hit err');
this.sendAnswer(astr); this.sendAnswer(astr);
this.fallCare(false);
playDragonBoneAnimation(item, 'dizzy', 1, ()=>{
playDragonBoneAnimation(item, 'normal', -1);
});
item._recount_timer = cc.tween(this._time_node)
.delay(1)
.call(()=>{
this.setTimer();
})
.start();
} }
else{ else{
console.log('hit ok'); console.log('hit ok');
this.sendAnswer(astr, true); this.sendAnswer(astr, true);
this.fallCare(true);
this._can_hitted = false;
this.fallCare();
} }
}) })
.delay(0.1) .delay(0.1)
...@@ -649,10 +638,11 @@ cc.Class({ ...@@ -649,10 +638,11 @@ cc.Class({
}, },
fallCare(){ fallCare(correct){
this.cleanTimer(); this.cleanTimer();
this._can_hitted = false; this._can_hitted = false;
this.updateFlag(); if (correct == true)
this.updateFlag();
let fly; let fly;
for(let i = 0; i < 2; i++){ for(let i = 0; i < 2; i++){
......
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