hello together!
i want to switch the camera whenever the user swipe over the iPhone.
how can i check if there was a swipe? how can i check the distance between touchDeltaPosition and swipeDeltaPosition?
if (Input.touchCount > 0 Input.GetTouch(0).phase == TouchPhase.Began){
var touchDeltaPosition:Vector2 = Input.GetTouch(0).deltaPosition;
}
if (Input.touchCount > 0 Input.GetTouch(0).phase == TouchPhase.Moved){
var swipeDeltaPosition:Vector2 = Input.GetTouch(0).deltaPosition;
}