using System; namespace StateMachine2.State { public enum AnimationState { Walk = , Dead, } public abstract class State { abstract public int GetStateId{ get; } abstract public void Enter(StateEvent data); abstract public void Execute(StateEvent data…