Пример #1
0
    void Animation()
    {
        if (stateManager.IsJump)
        {
            return;
        }

        if (velocity == 0)
        {
            stateManager.ChangeIdling();
        }
        else if (stateManager.IsIdling)
        {
            stateManager.ChangeMove();
        }
    }