6 [SerializeField]
private TextMeshProUGUI
m_TimeText =
null;
7 [SerializeField]
private TextMeshProUGUI
m_DateText =
null;
9 [SerializeField]
private TextMeshProUGUI
m_YearText =
null;
37 private void UpdateGameTime(
int gameYear,
Season gameSeason,
int gameDay,
string gameDayOfWeek,
int gameHour,
int gameMinute,
int gameSecond )
41 gameMinute = gameMinute - ( gameMinute % 10 );
62 minute =
"0" + gameMinute.ToString();
66 minute = gameMinute.ToString();
69 string time = gameHour.ToString() +
" : " + minute + ampm;
72 m_DateText.SetText( gameDayOfWeek +
". " + gameDay.ToString());
Season
Used for time mechanism
void OnDisable()
Unsubscribe from the AdvanceGameMinuteEvent
TextMeshProUGUI m_TimeText
void UpdateGameTime(int gameYear, Season gameSeason, int gameDay, string gameDayOfWeek, int gameHour, int gameMinute, int gameSecond)
Update UI game time
void OnEnable()
Subscribe to the AdvanceGameMinuteEvent
TextMeshProUGUI m_SeasonText
TextMeshProUGUI m_YearText
TextMeshProUGUI m_DateText