コード例 #1
0
ファイル: Player.cs プロジェクト: lachiesainsbury/VitaVillage
    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);
    }