Exemple #1
0
 /// <summary>
 /// Adds the state.
 /// </summary>
 /// <param name="name">Name.</param>
 private void AddState(TStateEnum name)
 {
     mStateDict[name] = new FSMState <TStateEnum>(name);
 }
Exemple #2
0
 public FSMStateMachine(T entity)
 {
     m_Entity       = entity;
     m_CurrentState = m_PreviousState = m_GlobalState = null;
 }
Exemple #3
0
 public void ResetStateMachine(T entity, FSMStateFactory <T> factory)
 {
     m_Entity       = entity;
     m_StateFactory = factory;
     m_CurrentState = m_PreviousState = m_GlobalState = null;
 }
Exemple #4
0
 /// <summary>
 /// Adds the state.
 /// </summary>
 /// <param name="name">Name.</param>
 private void AddState(TStateName name)
 {
     mStateDict[name] = new FSMState <TStateName>(name);
 }