public void CheckAgenda() { TimeOfDay timeOfDay = TimeManager.instance.timeOfDay; if (currentEvent.IsFinished(timeOfDay)) { currentEvent = agenda.NextEvent(); } FreeTime = !currentEvent.HasBegun(timeOfDay); }
void Start() { agenda.Initialize(); currentEvent = agenda.NextEvent(); FreeTime = !currentEvent.HasBegun(TimeManager.instance.timeOfDay); if (auto_update) { TimeManager.instance.OnQuarterUpdate += CheckAgenda; } }