Quantcast
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

Well, if you have both fingers on the screen left and right, then you have `Input.touchCount` equal to 2. If you let up on the left, I guess you want to stop your thrusters, but `Input.touchCount` will equal 1, so your code will not be called. And anyway, I think your code is a bit unsafe. If you have only a single finger down, then `Input.touchCount` will be 1, but in your one 10 you ask for the second touch, which is surely going to break? I think you'll want to use the various touch phases, so you know the finger has been lifted if you get a `TouchPhase.Ended`.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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