Esempio n. 1
0
	public void ReciveBuff( AsBaseEntity target )
	{
		m_OtherUserFsm = null;
		ClearBuff();	
		
		if( null == target )
		{			
			return;
		}		
		
		AsMonsterFsm mobFsm = target.GetComponent( eComponentType.FSM_MONSTER ) as AsMonsterFsm;			
		if( null != mobFsm )
		{				
			m_MobFsm = mobFsm;	
			m_OtherUserFsm = null;
		
			foreach( CNpcBuffTempData _data in mobFsm.getBuffTempList )
			{			
				InsertBuffData( _data.getNpcBuff, _data.getRemainCoolTime );				
			}	
		}
		else
		{
			AsOtherUserFsm otehrUserFsm = target.GetComponent( eComponentType.FSM_OTHER_USER ) as AsOtherUserFsm;
			if( null != otehrUserFsm )				
			{
				m_OtherUserFsm = otehrUserFsm;
				m_MobFsm = null;
				
				foreach( CNpcBuffTempData _data in m_OtherUserFsm.getBuffTempList )
				{			
					InsertBuffData( _data.getNpcBuff, _data.getRemainCoolTime );						
				}					
			}
		}
		
		ResetUiBuffSlot();
	}
Esempio n. 2
0
	public void EmptyOtherUserFsm()
	{
		ClearBuff();
		m_OtherUserFsm = null;
		SetActiveEtc(false);
	}