Hi @armariya
Normally you should customize engine code and build it for your project but it’s not so easy and quick way. Another solution is that y you can re-define functions on the fly in javascript.
I’ve recorded video tutorial for your subject here:
It shows how to redefine button’s _onTouchBegan function during scene load.
Hope it helps