示例#1
0
 /*设置当前状态*/
 public void SetCurrentState(FSMState <EntityType, TransitionId> currentState)
 {
     m_CurrentState = currentState;
     m_CurrentState.Enter();
 }
示例#2
0
 public void UnregisterState(FSMState <EntityType, TransitionId> state)
 {
     m_StateDic.Remove(state.StateID);
 }
示例#3
0
 /*设置全局状态*/
 public void SetGlobalState(FSMState <EntityType, TransitionId> globalState)
 {
     m_GlobalState = globalState;
     m_GlobalState.Enter();
 }
示例#4
0
 public FSMState <EntityType, TransitionId> RegisterState(FSMState <EntityType, TransitionId> state)
 {
     state.RegisterState(m_Owner);
     m_StateDic.Add(state.StateID, state);
     return(state);
 }