Esempio n. 1
0
        private void _internalTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            _dayCounter++;
            Now = Now.AddDays(+1);
            var eventArgs = new DaysManagerEventArgs(Now, _dayCounter);

            OnNextDay?.Invoke(this, eventArgs);
        }
Esempio n. 2
0
 public static void NextDay(bool isDay, GameObject panel = null)
 {
     if (isDay)
     {
         instance.StartCoroutine(instance.StartDay(panel));
     }
     else
     {
         Days++;
         DaytimeManager.AdvanceTimeTo(8);
         OnNextDay?.Invoke();
     }
 }