//pet void OnPetDataIndicate( AsIMessage _msg) { Msg_PetDataIndicate data = _msg as Msg_PetDataIndicate; m_PetData = data; m_PetOwner = data.data_.owner_; gameObject.name += "<" + m_PetOwner.name + "'s pet" + ">"; m_PetEntity.SetPetItemView( m_PetData.data_.itemIdx_); if(data.display_ == true) SetPetFsmState(AsPetFsm.ePetFsmStateType.DISPLAY); }
void OnPetDataIndicate( AsIMessage _msg) { Msg_PetDataIndicate indicate = _msg as Msg_PetDataIndicate; m_Pet = AsEntityManager.Instance.PetAppear( indicate.data_); m_Pet.HandleMessage( indicate); m_PetData = indicate; m_UserEntity.OwnPet( true); if( indicate.data_.initial_ == true) StartCoroutine( HatchPerform()); }
public Msg_Pet_Script_Indicate(Msg_PetDataIndicate _data) { m_MessageType = eMessageType.PET_SCRIPT_INDICATE; data_ = _data; }