Beispiel #1
0
 // 状態変更
 public void ChangeState(IFSMInterface state, object context)
 {
     PopState(context);
     PushState(state, context);
 }
Beispiel #2
0
 public void PushState(IFSMInterface subState, object context)
 {
     subState.Entry(context);
     currentState.Push(subState);
 }
Beispiel #3
0
 public FSM(IFSMInterface initialState)
 {
     currentState.Push(initialState);
 }