Beispiel #1
0
	public void Open(body_SC_PET_CREATE_RESULT _create)
	{
		Tbl_Pet_Record petRec = AsTableManager.Instance.GetPetRecord(_create.nPetTableIdx);
		if( petRec != null)
		{
			Tbl_PetScript_Record scriptRec = AsTableManager.Instance.GetPetScriptRecord(_create.nPetPersonality);
			string personality = AsTableManager.Instance.GetTbl_String(scriptRec.PersonName);
			string name = petRec.Name;
			
			string content = AsTableManager.Instance.GetTbl_String( 2218);
			content = string.Format( content, personality, name);
			text_Index.Text = content;
			
			slot1.SetSlotImg( petRec.Icon);
		}
		else
		{
			Debug.LogError( "UIPetPerform:: Open: there is no pet record. id = " + _create.nPetTableIdx);
			Destroy( gameObject);
		}
	}
Beispiel #2
0
	void _HatchPerform(body_SC_PET_CREATE_RESULT _create)
	{
		UIPetPerform perform = _HatchGeneration();
		perform.Open(_create);
	}
Beispiel #3
0
	public void Recv_PetCreateResult( byte[] _packet)
	{
		m_PacketSend = false;

		body_SC_PET_CREATE_RESULT create = new body_SC_PET_CREATE_RESULT();
		create.PacketBytesToClass(_packet);

		_HatchPerform(create);
	}