using System.Collections.Generic; using TMPro; public class FarmShopUI : BotMenuBase { public static FarmShopUI Ins; public TextMeshProUGUI[] texts; // 0 갱신 시간 private void Start() { Ins = this; } public override void Set() { base.Set(); Set_Repeat_for1sec(Set_NextTime); var lst = new List(); foreach (var item in ServerInfo.Ins.m_ServerData.Farm.Shop) lst.Add(int.Parse(item.Key)); Set_ScrollView(lst); Set_NextTime(); Set_Money(1, 2); } void Set_NextTime() { texts[0].text = DSUtil.Get_TimeText_HMS(ServerInfo.ServerTime.Date.AddDays(1) - ServerInfo.ServerTime); } }