Created
September 4, 2014 20:24
-
-
Save rbreve/3f244574d7ab0e558d2d to your computer and use it in GitHub Desktop.
Detect one tap in Unity3d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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