Ejemplo n.º 1
0
    public void CheckAgenda()
    {
        TimeOfDay timeOfDay = TimeManager.instance.timeOfDay;

        if (currentEvent.IsFinished(timeOfDay))
        {
            currentEvent = agenda.NextEvent();
        }
        FreeTime = !currentEvent.HasBegun(timeOfDay);
    }
Ejemplo n.º 2
0
 void Start()
 {
     agenda.Initialize();
     currentEvent = agenda.NextEvent();
     FreeTime     = !currentEvent.HasBegun(TimeManager.instance.timeOfDay);
     if (auto_update)
     {
         TimeManager.instance.OnQuarterUpdate += CheckAgenda;
     }
 }