Commit 1c30ea24 authored by 范雪寒's avatar 范雪寒

fix: buttonOnClick

parent 7e6d5dc8
......@@ -50,6 +50,7 @@ cc.Class({
},
buttonOnClick(button, callback, scale = 1.0) {
button.on('click', () => {
if (button['cantClick']) {
return;
}
......@@ -62,6 +63,6 @@ cc.Class({
callback && callback();
})
.start();
}
});
\ No newline at end of file
}
});
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