예제 #1
0
	public void SetCollectionFsmState( eCollectionFsmStateType _type, AsIMessage _msg)
	{
		if( m_CurrentFsmState != null)
		{
			if( m_CurrentFsmState.FsmStateType == _type)
			{
				Debug.LogWarning( "AsOtherUserFsm::SetOtherUserFsmState: same state = " + _type);
				return;
			}

			m_CurrentFsmState.Exit();
			m_OldFsmState = m_CurrentFsmState;
		}

		if( m_dicFsmState.ContainsKey( _type) == true)
		{
			state_ = _type;
			m_CurrentFsmState = m_dicFsmState[_type];
			m_CurrentFsmState.Enter( _msg);
		}
	}
예제 #2
0
	public void SetCollectionFsmState( eCollectionFsmStateType _type)
	{
		SetCollectionFsmState( _type, null);
	}