Commit 014c1f7c authored by liujiangnan's avatar liujiangnan

feat: 去掉按钮点击弹动

parent 69be4298
...@@ -538,14 +538,8 @@ export function buttonOnClick(button, callback, scale = 1.0) { ...@@ -538,14 +538,8 @@ export function buttonOnClick(button, callback, scale = 1.0) {
return; return;
} }
button['cantClick'] = true; button['cantClick'] = true;
cc.tween(button) callback && callback();
.to(0.1, { scale: scale * 1.1 }) button['cantClick'] = false;
.to(0.1, { scale: scale })
.call(() => {
button['cantClick'] = false;
callback && callback();
})
.start();
}); });
} }
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