public void BeginGesture(Player player, bool left, bool inGame)
    {
        if (!inGame && !calibrating)
        {
            return;
        }

        if (left)
        {
            //If this is the first hand of the gesture
            if (rNextSample == -1)
            {
                //Create a new left gesture
                currentGesture = new Gesture(Gesture.GestureHand.LEFT);
            }
            else //If the gesture has already been started by the other hand
            {
                currentGesture.AddHand(Gesture.GestureHand.LEFT);
            }

            //Add the starting node
            currentGesture.AddStartPoint(Gesture.GestureHand.LEFT, player.leftHand.CenterPos() - player.playerHead.transform.position);

            //Set time until the next sample should be recorded
            lNextSample = sampleTime;
        }
        else
        {
            //If this is the first hand of the gesture
            if (lNextSample == -1)
            {
                //Create a new left gesture
                currentGesture = new Gesture(Gesture.GestureHand.RIGHT);
            }
            else //If the gesture has already been started by the other hand
            {
                currentGesture.AddHand(Gesture.GestureHand.RIGHT);
            }

            //Add the starting node
            currentGesture.AddStartPoint(Gesture.GestureHand.RIGHT, player.rightHand.CenterPos() - player.playerHead.transform.position);

            //Set time until the next sample should be recorded
            rNextSample = sampleTime;
        }
    }