void UIUpdate(int openSkillIndex) { Transform tempConstellation = transform.parent.parent; ConstellationDictionary tempConstellation_ = LocalAccount.Instance.ListOfConstellation[openSkillIndex]; tempConstellation.GetChild(0).GetComponent <Image>().overrideSprite = Resources.Load <Sprite>("SkillImage/" + tempConstellation_.constellationName); tempConstellation.GetChild(1).GetChild(0).GetComponent <Text>().text = tempConstellation_.contellationContent; tempConstellation.GetChild(3).GetComponent <Text>().text = string.Format("Lv." + tempConstellation_.GetLevelOfSkill().ToString()); tempConstellation.GetChild(4).GetComponent <Slider>().value = tempConstellation_.GetRatioExpOfLevel(); tempConstellation.GetChild(5).GetComponent <Text>().text = string.Format((tempConstellation_.GetRatioExpOfLevel() * 100).ToString("N2") + "%"); tempConstellation.GetChild(6).gameObject.SetActive(false); }
IEnumerator OpenReinforceSkill_() { RectTransform ReinforceSkillPanelChild = reinforceSkillUIPanel.transform.GetChild(0).GetComponent <RectTransform>(); reinforceSkillUIPanel.SetActive(true); ReinforceSkillPanelChild.DOSizeDelta(new Vector2(1500, 900), 0.5f).SetEase(Ease.OutBack); yield return(new WaitForSeconds(0.5f)); for (int i = 0; i < ReinforceSkillPanelChild.childCount; i++) { ReinforceSkillPanelChild.GetChild(i).gameObject.SetActive(true); } if (LocalAccount.Instance.ListOfConstellation != null) { for (int i = 0; i < LocalAccount.Instance.ListOfConstellation.Count; i++) { ConstellationDictionary tempConst = LocalAccount.Instance.ListOfConstellation[i]; Transform tempConst_ = ListOfConstellation.transform.GetChild(i); tempConst_.GetChild(0).GetComponent <Image>().overrideSprite = Resources.Load <Sprite>("SkillImage/" + tempConst.constellationName); tempConst_.GetChild(1).GetChild(0).GetComponent <Text>().text = tempConst.contellationContent; if (tempConst.isLocked) { tempConst_.GetChild(3).GetComponent <Text>().text = string.Format("Lv." + tempConst.GetLevelOfSkill().ToString()); tempConst_.GetChild(4).GetComponent <Slider>().value = tempConst.GetRatioExpOfLevel(); tempConst_.GetChild(5).GetComponent <Text>().text = string.Format((tempConst.GetRatioExpOfLevel() * 100).ToString("N2") + "%"); } else { tempConst_.GetChild(6).gameObject.SetActive(true); } tempConst_.gameObject.SetActive(true); } } yield return(null); ListOfConstellation.transform.parent.parent.GetChild(1).GetComponent <Scrollbar>().value = 0; }