Пример #1
0
 private void HandleAwakeLevelupCmd(CommandParser.Command param)
 {
     int num = 0;
     int.TryParse(param.GetParam(1), out num);
     PetDataEx pet = Globals.Instance.Player.TeamSystem.GetPet(num);
     if (pet == null)
     {
         global::Debug.LogErrorFormat("can't find the pet, slot = {0}", new object[]
         {
             num
         });
         return;
     }
     MC2S_AwakeLevelup mC2S_AwakeLevelup = new MC2S_AwakeLevelup();
     mC2S_AwakeLevelup.PetID = pet.Data.ID;
     Globals.Instance.CliSession.Send(419, mC2S_AwakeLevelup);
 }
Пример #2
0
 private void OnJueXingBtnClick(GameObject go)
 {
     PetDataEx curPetDataEx = this.mBaseScene.CurPetDataEx;
     if (curPetDataEx != null && curPetDataEx.Data.Awake < this.mNextAwake)
     {
         this.mOldAwake = curPetDataEx.Data.Awake;
         this.mBaseScene.SetOldAttrNum();
         MC2S_AwakeLevelup mC2S_AwakeLevelup = new MC2S_AwakeLevelup();
         mC2S_AwakeLevelup.PetID = ((curPetDataEx.GetSocketSlot() != 0) ? curPetDataEx.Data.ID : 100uL);
         Globals.Instance.CliSession.Send(419, mC2S_AwakeLevelup);
     }
 }