void Update() { if (Input.touchCount == 2) { if (isInPlace) { //if (BothTouchesOnImage ()) { GoOutOfPlace(); //} } else { Vector2 touch1 = Input.GetTouch(0).position; Vector2 touch2 = Input.GetTouch(1).position; if (Vector2.Distance(touch1, initialTouch1) >= dragThreshold || Vector2.Distance(touch2, initialTouch2) >= dragThreshold) { zoomHelper.ZoomUnzoomMove(); } } return; } else { if (zoomHelper.isCenterPivotInitialized) { GoBackToPlace(); } } }