Commit dbd51dc9 authored by limingzhe's avatar limingzhe

fix: 点击优化

parent 522de26e
......@@ -169,7 +169,7 @@ cc.Class({
}
this.paint.on("click",async ()=>{
await asyncDelay(0.5);
// await asyncDelay(0.5);
cc.log("btnCoolCat");
if (this._can_tap != true)
return;
......@@ -670,7 +670,10 @@ cc.Class({
bindTeethHit(tooth) {
let sprite = tooth;
sprite.on(cc.Node.EventType.TOUCH_START, () => {
sprite.on(cc.Node.EventType.TOUCH_START, (e) => {
e.stopPropagation();
if (this._can_tap != true)
return;
......
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