Skip to content

Instantly share code, notes, and snippets.

@rbreve
Created September 4, 2014 20:24
Show Gist options
  • Save rbreve/3f244574d7ab0e558d2d to your computer and use it in GitHub Desktop.
Save rbreve/3f244574d7ab0e558d2d to your computer and use it in GitHub Desktop.
Detect one tap in Unity3d
if(Input.touchCount == 1){
Touch touch = Input.GetTouch(0);
if(touch.phase == TouchPhase.Ended){
handleTouch(touch.position);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment