// Update is called once per frame
    public void Update(Player player, float deltaTime, bool inGame)
    {
        if (!inGame && !calibrating)
        {
            return;
        }

        //If a left gesture is being recorded
        if (lNextSample >= 0)
        {
            lNextSample -= deltaTime;

            //If enough time has passed since the last node in the left gesture, create a new one
            if (lNextSample <= 0)
            {
                currentGesture.AddNode(player.leftHand.CenterPos() - player.playerHead.transform.position, Gesture.GestureHand.LEFT);

                lNextSample = sampleTime;
            }
        }

        //If a right gesture is being recorded
        if (rNextSample >= 0)
        {
            rNextSample -= deltaTime;

            //If enough time has passed since the last node in the right gesture, create a new one
            if (rNextSample <= 0)
            {
                currentGesture.AddNode(player.rightHand.CenterPos() - player.playerHead.transform.position, Gesture.GestureHand.RIGHT);

                rNextSample = sampleTime;
            }
        }
    }