Commit ef209f46 authored by linzhiguo's avatar linzhiguo

+ 打错过题,不给贴纸

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