public Tuple <float, float> ParseScreenDelta()
    {
        var     fingers = Use.UpdateAndGetFingers();
        Vector2 vector  = LeanGesture.GetScaledDelta(fingers);

        return(new Tuple <float, float>(vector.x, vector.y));
    }
Пример #2
0
    protected virtual void Update()
    {
        // Get the fingers we want to use
        //var fingers = Use.GetFingers();
        var fingers = Use.UpdateAndGetFingers(); // 원래 윗줄이었는데 버전업되면서 바뀐것 같다. 일단 수정했는데 돌아가는지 확인은 안해봄

        // Calculate pinch scale, and make sure it's valid
        var pinchScale = LeanGesture.GetPinchScale(fingers);

        if (pinchScale > 1.13f)
        {
            Debug.Log("Pinch : " + pinchScale);
            PinchPhone();
        }
    }