Hey there! So my problem is with touch input. I at the moment just have it set to Input.GetMouseButtonDown(0))
and when you do that, the character jumps (2d infinite sidescroller). So when I add a button, you click the button, but the character still jumps since it is of course still a Left mouse button click. I am pretty lost when it comes to touch input. This is C#, hoping someone can shed some light on this. I’m pretty dang lost lol. Thanks in advance!
Hello.
Take a look at this link: ignore left mouse button click in the game when using gui buttons - Questions & Answers - Unity Discussions
You should be setting up a GUI area for where the buttons are within a rectangle. At that point, you can check to see if you are touching within that rectangle or outside of it on every mouse down event. This will allow you to handle each situation differently.