private void _internalTimer_Elapsed(object sender, ElapsedEventArgs e) { _dayCounter++; Now = Now.AddDays(+1); var eventArgs = new DaysManagerEventArgs(Now, _dayCounter); OnNextDay?.Invoke(this, eventArgs); }
public static void NextDay(bool isDay, GameObject panel = null) { if (isDay) { instance.StartCoroutine(instance.StartDay(panel)); } else { Days++; DaytimeManager.AdvanceTimeTo(8); OnNextDay?.Invoke(); } }