Commit 014c1f7c authored by liujiangnan's avatar liujiangnan

feat: 去掉按钮点击弹动

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