Example #1
0
        private void Update()
        {
            moveInput.GetInput();


            UpdateStateManager();
        }
    void Update()
    {
        moveInput.GetInput();
        rotationInput.GetInput();

        if (Input.GetKey(KeyCode.Space))
        {
            jumpPressed = true;
        }

        if (Input.GetKeyDown(KeyCode.Space))
        {
            jumpPressed = true;
        }

        if (Input.GetKeyUp(KeyCode.Space))
        {
            //jumpPressed = false;
        }

        isGrounded = isOnGround();
    }