コード例 #1
0
    public void CheckAgenda()
    {
        TimeOfDay timeOfDay = TimeManager.instance.timeOfDay;

        if (currentEvent.IsFinished(timeOfDay))
        {
            currentEvent = agenda.NextEvent();
        }
        FreeTime = !currentEvent.HasBegun(timeOfDay);
    }
コード例 #2
0
 void Start()
 {
     agenda.Initialize();
     currentEvent = agenda.NextEvent();
     FreeTime     = !currentEvent.HasBegun(TimeManager.instance.timeOfDay);
     if (auto_update)
     {
         TimeManager.instance.OnQuarterUpdate += CheckAgenda;
     }
 }