I can add an onClick listener to one of my buttons using:
JumpButton.onClick.AddListener(() => {Jump(); });
I want do the same with another button only I want the event to be a an OnPointer or OnMouse down event. I tried the following:
RotateButton.OnPointerDown.AddListener(() => {RotateVehicle(); });
But this yields error:
Expression denotes a 'method group', where a 'variable', 'value or 'type was expected
Thank you in advance.