// Update is called once per frame
    void Update()
    {
        speedVector.x = Input.GetAxis("Horizontal") * publicVariables.getUserSpeed();



        if (Input.GetButtonDown("Jump"))
        {
            if (Input.GetAxis("Vertical") < -0.8)
            {
                gravityManager.downJump();
            }
            else
            {
                gravityManager.jump();
            }
        }



        if (Input.GetAxis("SprintManette") < -0.55 || Input.GetButton("Sprint"))
        {
            publicVariables.setSprint(true);
        }
        else
        {
            publicVariables.setSprint(false);
        }
    }