//정보 출력 void InfoRefresh() { if (!source.Count.Equals(0)) { infoTexts[0].text = GetLabel(selectEle); infoTexts[1].text = string.Format("<color=#939393>Epoch:</color> {0}", GetGregoriDate(selectEle.epoch)); infoTexts[2].text = selectEle.a + ""; infoTexts[3].text = selectEle.e + ""; infoTexts[4].text = selectEle.i + ""; infoTexts[5].text = selectEle.Ω + ""; infoTexts[6].text = selectEle.ω + ""; infoTexts[7].text = selectEle.period + ""; infoTexts[8].text = selectEle.M0 + ""; infoTexts[9].text = selectEle.mdm + ""; infoTexts[10].text = selectEle.peri_dist + ""; infoTexts[11].text = selectEle.aphel_dist + ""; infoTexts[12].text = selectEle.H + ""; infoTexts[13].text = selectEle.last_Obs + ""; FavoritMark.SetActive(favoritList.Contains(selectEle)); } else { for (int i = 0; i < infoTexts.Length; i++) { infoTexts[i].text = ""; } FavoritMark.SetActive(false); } }
//즐겨찾기 추가 public void FavoritCheck() { if (source.Count.Equals(0)) { return; } if (!favoritList.Contains(selectEle)) { favoritList.Add(selectEle); FavoritMark.SetActive(true); } else { favoritList.Remove(selectEle); FavoritMark.SetActive(false); } PageRefresh(); DataMgr.DataSave(); }