示例#1
0
 public void Touch_OnSwipe(object sender, directionMoveArgs e)
 {
     // add logic to handle the touch swipe here
     swipeDirection = e.direction;
     // the time deley before resetting the swipeDirection -1 doesn't reset the swipe
     if (swipeDeley > -1)
     {
         StartCoroutine(SwipeRest());
     }
 }
示例#2
0
 private void TouchInput_OnSwipe(object sender, directionMoveArgs e)
 {
     Debug.Log("Swiper: " + e.direction);
 }
示例#3
0
    //Place your public methods here

    #endregion
    #region Private Methods
    //Place your public methods here
    private void TouchInput_OnSwipe(object sender, directionMoveArgs e)
    {
        dir = e.direction;
    }