Пример #1
0
    private void PlayAnimationsBasedOnState()
    {
        switch (movementState)
        {
        case MovementStates.Idle:
            animationController.PlayIdleAnimation();
            break;

        case MovementStates.Running:
            animationController.PlayRunningAnimation();
            break;

        case MovementStates.Jumping:
            animationController.PlayJumpingAnimation();
            break;

        case MovementStates.Attacking:
            break;

        default:
            break;
        }
    }