状态模式-2.状态基类

时间:2024-05-02 18:47:09
public abstract class State 
{
    public string? Name { get; set; }
    public StateMachine? StateMachine {get; set;}
    public abstract void Exit();
    public abstract void Enter();
}

相关文章