Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

My IOS touch input is not working

$
0
0
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; }

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>