Quantcast
Channel: Answers for "How to jump higher when you hold down with *touch* controls"
Viewing all articles
Browse latest Browse all 4

Answer by tanoshimi

$
0
0
You need to examine the touchPhase of each touch on the screen: http://docs.unity3d.com/ScriptReference/TouchPhase.html In the frame in which the touch is first registered, this will be "Began". In every subsequent frame the touch is held, it will either be "Stationary " or "Moved", until it is ended or cancelled. So you can consider those two states as equivalent to a mouse or key button being held.

Viewing all articles
Browse latest Browse all 4

Trending Articles



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