tch (state)
    {
        case PlayerState.Idle:
            characterSprite.AnimationName = &quot;Idle&quot;;
            break;
        case PlayerState.Walking:
            characterSprite.AnimationName = &quot;Walk&quot;;
            break;
        case PlayerState.Jumping:
            characterSprite.AnimationName = &quot;Jump&quot;;
            break;
        case PlayerState.Attacking:
            characterSprite.AnimationName = &quot;Attack&quot;;
            break;
    }
}
</code></pre>
<h3 id="mem