Commit 49fc61f9 authored by 张世斌's avatar 张世斌

1.修复bug

parent 315dbab3
This diff is collapsed.
......@@ -167,14 +167,20 @@ cc.Class({
});
}
// this.paint.on("Click",()=>{
// playDragonBoneAnimation(this.coolcat, 'wrong', -1);
// this.playAudioByUrl(this.data.wrongAudio,()=>{
// playDragonBoneAnimation(this.coolcat, 'normal', -1);
// this._can_tap = true;
this.paint.on("click",()=>{
if (this._can_tap != true)
return;
this._can_tap=false;
cc.log("paint 点击");
playDragonBoneAnimation(this.coolcat, 'wrong', -1);
this.playAudioByUrl(this.data.wrongAudio,()=>{
playDragonBoneAnimation(this.coolcat, 'normal', -1);
this._can_tap = true;
// })
// })
})
// this.paintTimeID = setTimeout(() => {
// }, 500);
})
this.paint.active = false;
this.paint2.active = false;
......@@ -651,6 +657,8 @@ cc.Class({
if (this.color_selector.active == false)
return;
this._can_tap = false;
// clearTimeout(this.paintTimeID);
//correct
playDragonBoneAnimation(this.coolcat, 'right', -1);
this.playAudioByUrl(this.data.rightAudio,()=>{
......
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