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