public IEnumerator PinchReset(pinchMoveArgs e) { // wait before resetting the swipedirection yield return(new WaitForSeconds(swipeDeley)); e.Rest(); pinchHasFinished = true; }
private void TouchInput_OnPinch(object sender, pinchMoveArgs e) { int stage = 50; switch (e.direction) { case (PINCHDIRECTION.IN): stage *= -1; stage += stage; break; default: break; } m_Camera.fieldOfView += stage * Time.deltaTime; }
public void Touch_Pinch(object sender, pinchMoveArgs e) { StartCoroutine(PinchReset(e)); }
private void TouchInput_OnPinch(object sender, pinchMoveArgs e) { Debug.Log("Pinch: " + e.direction); }