Quantcast
Channel: Answers by "VincentDB"
Viewing all articles
Browse latest Browse all 12

Answer by VincentDB

$
0
0
Didn't tried but should work: if (Input.GetTouch(i).phase == TouchPhase.Began) { startTime = Time.time; } if(Input.touchCount > 0 && startTime - Time.time > timer) { //Long tap stuff longTap = true; } if (Input.GetTouch(i).phase == TouchPhase.Ended && longTap) { longTap = false; //Long tap end stuff }

Viewing all articles
Browse latest Browse all 12

Trending Articles