Ejemplo n.º 1
0
	private void ReceiveEventList( byte[] _packet)
	{
		body1_SC_EVENT_LIST result = new body1_SC_EVENT_LIST();
		result.PacketBytesToClass( _packet);

		if( null != AsHUDController.Instance.m_NpcMenu)
			AsHUDController.Instance.m_NpcMenu.ReceiveEventNpcList( result);

		Debug.Log( "ReceiveEventList");
	}
Ejemplo n.º 2
0
	public void ReceiveEventNpcList( body1_SC_EVENT_LIST _dataList)
	{
		if( null == _dataList)
			return;
		
		eventList.ClearList( true);
		m_eventListItemList.Clear();
		
		if( null == _dataList.body)
		{
			m_Talk.Text = AsTableManager.Instance.GetTbl_String(1609);
			return;
		}

		m_EventListData = _dataList;

		for ( int i=0; i < m_EventListData.body.Length; ++i)
		{
			body2_SC_EVENT_LIST _data = m_EventListData.body[i];
			IUIListObject _itemObject = eventList.CreateItem(m_Questlist.questPrefab, Color.black.ToString() + _data.szTitle);
			if( null != _itemObject)
			{
				QuestListIconController ctrl = _itemObject.gameObject.GetComponent<QuestListIconController>();
				if( null != ctrl)
					ctrl.SetUseEvent();
				
				m_eventListItemList.Add( _itemObject);
			}
		}
	}