Quantcast
Channel: Answers by "code_warrior"
Viewing all articles
Browse latest Browse all 46

Answer by code_warrior

$
0
0
The OnMouseDown() function is equivalent to a single one finger tap. As you are trying to accomplish touch gesture you should definitely look at the [Input.GetTouch function][1]. This function can track multiple fingers by there ID and allows you to check whether it was a single or double tap. [1]: http://docs.unity3d.com/ScriptReference/Input.GetTouch.html

Viewing all articles
Browse latest Browse all 46

Trending Articles