Exemple #1
0
    public IEnumerator PinchReset(pinchMoveArgs e)
    {
        // wait before resetting the swipedirection
        yield return(new WaitForSeconds(swipeDeley));

        e.Rest();
        pinchHasFinished = true;
    }
Exemple #2
0
    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;
    }
Exemple #3
0
 public void Touch_Pinch(object sender, pinchMoveArgs e)
 {
     StartCoroutine(PinchReset(e));
 }
Exemple #4
0
 private void TouchInput_OnPinch(object sender, pinchMoveArgs e)
 {
     Debug.Log("Pinch: " + e.direction);
 }