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