public void OnFightBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (this.mBaseScene.mSlot == -1)
     {
         MC2S_PetReborn mC2S_PetReborn = new MC2S_PetReborn();
         mC2S_PetReborn.PetID = this.mPetData.GetID();
         GameUIManager.mInstance.uiState.PetRebornData = mC2S_PetReborn;
         this.mBaseScene.OnBackClick(null);
     }
     else
     {
         MC2S_SetCombatPet mC2S_SetCombatPet = new MC2S_SetCombatPet();
         mC2S_SetCombatPet.Slot = this.mBaseScene.mSlot;
         mC2S_SetCombatPet.PetID = this.mPetData.GetID();
         Globals.Instance.CliSession.Send(195, mC2S_SetCombatPet);
     }
 }
Beispiel #2
0
 private void HandlePetRebornCmd(CommandParser.Command param)
 {
     ulong petID = 0uL;
     ulong.TryParse(param.GetParam(1), out petID);
     MC2S_PetReborn mC2S_PetReborn = new MC2S_PetReborn();
     mC2S_PetReborn.PetID = petID;
     Globals.Instance.CliSession.Send(415, mC2S_PetReborn);
 }