I am using Input.Touches to have my character move, however at the same time I am using UIbuttons for things like jumping. But whenever I click on a Button the touch from Input.touhes also registers and moves the character. What can I do to prevent Input.Touches from making the character move (register the touch) whenever I tap on a button ? In other words is there away to make it so that when the UIButtons are clicked no Touch is registered?
I tried setting the Button’s to a z position of -100. I hoped it would put the buttons “on top” of whatever registers Input.touch, but I guess Input.touch doesn’t have a position- it just registers very touch. Any Ideas?