Exemplo n.º 1
0
    void Update()
    {
        isWalking = false;

        // Checks if screen fader is not currently active
        if (!screenFader.GetIsFading() && !AreUIWindowsActive())
        {
            GetJoystickInput();
        }
        else
        {
            rigidbody.velocity = Vector2.zero;
        }

        // Update animator with walking status
        animator.SetBool("isWalking", isWalking);
    }