Project_WL/Assets/Script/UI/Farm/FarmShopUI.cs

24 lines
554 B
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
using TMPro;
public class FarmShopUI : BotMenuBase
{
public static FarmShopUI Ins;
public TextMeshProUGUI[] texts; // 0 갱신 시간
2025-07-23 03:31:50 +00:00
private void Start() { Ins = this; }
2024-12-15 01:39:39 +00:00
public override void Set()
{
base.Set();
2025-07-23 03:31:50 +00:00
Set_Repeat_for1sec(Set_NextTime);
2024-12-15 01:39:39 +00:00
Set_ScrollView(ServerInfo.Ins.m_ServerData.Farm.Shop);
Set_NextTime();
2025-07-23 03:31:50 +00:00
Set_Money(1, 2);
2024-12-15 01:39:39 +00:00
}
void Set_NextTime()
{
texts[0].text = DSUtil.Get_TimeText_HMS(ServerInfo.ServerTime.Date.AddDays(1) - ServerInfo.ServerTime);
}
}