How can I pass a function parameters from touch event
Example
I have a function like:
coinMove(x){
…
};
I want to pass parameter value of ‘x’ from:
this.node.on(cc.Node.EventType.TOUCH_START, this.coinMove, this);
How can I pass ‘this.coinsMove’ function’s parameter?