private void OnBtnLvUp(GameObject go) { Transform parent = go.get_transform().get_parent(); int num = int.Parse(parent.get_name()); int talentId = this.cellIds.get_Item(num); this.ClickedCellIndex = num; int skillLv = PetEvoGlobal.GetSkillLv(PetBasicUIViewModel.PetID, talentId); int num2 = skillLv + 1; if (num2 > PetManager.Instance.GetPetLevel(PetBasicUIViewModel.PetID)) { UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(400005, false)); return; } if (PetManager.Instance.GetSkillPoint() <= 0) { PetBasicUIViewModel.Instance.OnSPBtnBuyUp(); return; } if (!PetEvoGlobal.IsEnoughMaterail(talentId, num2)) { int materialId = PetEvoGlobal.GetMaterialId(talentId, num2); LinkNavigationManager.ItemNotEnoughToLink(materialId, true, null, true); return; } PetManager.Instance.SendPetTalentTrainReq(PetBasicUIViewModel.PetUID, talentId); }