📜  统一检查是否滑动未点击 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.041000             🧑  作者: Mango

代码示例1
//SWIPE OR TAP 

if(Input.GetTouch(0).phase == TouchPhase.Stationary) {
 
     //jump
 }
 if(Input.GetTouch(0).phase == TouchPhase.Moved) {
 
     //dash
 }