示例#1
0
 public FSMSystem(IList <FSMState <T> > addStates, FSMState <T> globalState)
 {
     AddStates(addStates);
     GlobalState = globalState;
     ResetToDefaultState();
 }
示例#2
0
 public void ResetToDefaultState()
 {
     CurrentState   = states[0];
     CurrentStateID = states[0].ID;
     CurrentState.DoBeforeEntering();
 }