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

1.修复bug

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