public void SetNpcFsmState(eNpcFsmStateType _type) { SetNpcFsmState(_type, null); }
public void SetNpcFsmState(eNpcFsmStateType _type, AsIMessage _msg) { if(m_CurrentFsmState != null) { m_CurrentFsmState.Exit(); m_OldFsmState = m_CurrentFsmState; } if(m_dicFsmState.ContainsKey(_type) == true) { state_ = _type; m_CurrentFsmState = m_dicFsmState[_type]; m_CurrentFsmState.Enter(_msg); } }