I built out my IOS game and put it on my phone through xcode, everything worked fine except one thing. My touch input was not working so I would love some help! Basically I just need it so if a finger taps anywhere on the screen, the scene changes, or the guy jumps, really basic input. Here is the code I currently have:
void Update(){
if (Input.GetKeyDown (KeyCode.Space) || Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began) {
didJump = true;
}
↧