Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
 }
 
PREVIOUS NEXT
Tagged: #unity #check #swipe #tap
ADD COMMENT
Topic
Name
4+5 =