27 lines
560 B
C#
27 lines
560 B
C#
using System;
|
|
using TMPro;
|
|
|
|
public class FarmShopUI : BotMenuBase
|
|
{
|
|
public static FarmShopUI Ins;
|
|
|
|
public TextMeshProUGUI[] texts; // 0 갱신 시간
|
|
|
|
private void Start()
|
|
{
|
|
Ins = this;
|
|
Act_Repeat_for1sec = Set_NextTime;
|
|
}
|
|
|
|
public override void Set()
|
|
{
|
|
base.Set();
|
|
Set_ScrollView(ServerInfo.Ins.m_ServerData.Farm.Shop);
|
|
Set_NextTime();
|
|
}
|
|
|
|
void Set_NextTime()
|
|
{
|
|
texts[0].text = DSUtil.Get_TimeText_HMS(ServerInfo.ServerTime.Date.AddDays(1) - ServerInfo.ServerTime);
|
|
}
|
|
} |