Beispiel #1
0
	public void SetNpcFsmState(eNpcFsmStateType _type)
	{
		SetNpcFsmState(_type, null);
	}
Beispiel #2
0
	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);
		}
	}