public void resetWithTouch(Touch touch) { // Initialize the detectionState only with the swipe types we want to listen for swipeDetectionState = swipesToDetect; startPoint = touch.position; startTime = Time.time; swipeDetectionStatus = SwipeDetectionStatus.Waiting; }
public void resetWithTouch( Touch touch ) { // Initialize the detectionState only with the swipe types we want to listen for swipeDetectionState = swipesToDetect; startPoint = touch.position; startTime = Time.time; swipeDetectionStatus = SwipeDetectionStatus.Waiting; }
public SwipeDetectionStatus swipeDetectionStatus; // Current status of the detector public TouchInfo( SwipeDirection swipesToDetect ) { this.swipesToDetect = swipesToDetect; startPoint = Vector2.zero; startTime = 0.0f; swipeDetectionState = SwipeDirection.Horizontal; completedSwipeDirection = 0; swipeDetectionStatus = SwipeDetectionStatus.Waiting; }
public SwipeDetectionStatus swipeDetectionStatus; // Current status of the detector public TouchInfo(SwipeDirection swipesToDetect) { this.swipesToDetect = swipesToDetect; startPoint = Vector2.zero; startTime = 0.0f; swipeDetectionState = SwipeDirection.Horizontal; completedSwipeDirection = 0; swipeDetectionStatus = SwipeDetectionStatus.Waiting; }