private void RefreshSummonChoiceOneSkill() { TransformUtil.ClearChildren(SummonChoiceOneRoot, true); List <PlayerSkillTalentInfo> skillList = PlayerTalentProxy.instance.GetCurPlayerSkillList(PlayerSkillTalentType.SummonThreeChoiceOne); if (skillList == null) { return; } PlayerSkillTalentInfo info; for (int i = 0, count = skillList.Count; i < count; i++) { info = skillList[i]; SkillTalentButton btn = Instantiate <SkillTalentButton>(skillButtonPrefab); btn.gameObject.SetActive(true); btn.transform.SetParent(SummonChoiceOneRoot, false); btn.name = i.ToString(); btn.SetInfo(info); if (info.IsCarry) { _activeSummonId = info.id; } } summonChoiceOneText.text = string.Format(Localization.Get("ui.player_cultivate_view.choice"), _activeSummonId == 0 ? 0 : 1); }
private void RefreshPassiveSkill() { TransformUtil.ClearChildren(PassiveRoot, true); List <PlayerSkillTalentInfo> skillList = PlayerTalentProxy.instance.GetCurPlayerSkillList(PlayerSkillTalentType.PassiveNormal); if (skillList == null) { return; } PlayerSkillTalentInfo info; for (int i = 0, count = skillList.Count; i < count; i++) { info = skillList[i]; SkillTalentButton btn = Instantiate <SkillTalentButton>(skillButtonPrefab); btn.gameObject.SetActive(true); btn.transform.SetParent(PassiveRoot, false); btn.name = i.ToString(); btn.SetInfo(info); } }