Answers for "unity check if swipe not tap"

C#
0

unity check if swipe not tap

//SWIPE OR TAP 

if(Input.GetTouch(0).phase == TouchPhase.Stationary) {
 
     //jump
 }
 if(Input.GetTouch(0).phase == TouchPhase.Moved) {
 
     //dash
 }
Posted by: Guest on June-21-2021

Code answers related to "unity check if swipe not tap"

C# Answers by Framework

Browse Popular Code Answers by Language