GameDateDisplay
Overview
Advances and displays the in-game date once per simulation tick. Raises monthPassed/yearPassed when the date rolls over and updates the underlying IntVariables accordingly.
Serialized
- IntVariable
currentDay,currentMonth,currentYear - VoidEvent
yearPassed,monthPassed - TextMeshProUGUI
dateDisplay
Behavior
- Start() → initialize
currentDateand set textdd/MM/yyyy. - Tick()
- Reconstruct
currentDatefrom variables,AddDays(1), update text. - If month/year changed, raise the corresponding events.
- Write back
currentDay,currentMonth,currentYearfrom the new date.
- Reconstruct
- Statics:
CurrentDateandCurrentDateStringaccessors.