static void DayHandler() { if (delta_day != DateTime.Now.Day) { OnDay.Invoke(DateTime.Now.Day); } delta_day = DateTime.Now.Day; }
private IEnumerator RestartDay() { creaturesEnded = 0; stopDay.Invoke(); GenerateFood(); yield return(new WaitForSeconds(1)); startDay.Invoke(); }
public void OnDayPassed() { Debug.Log("Day passed"); DayEvent?.Invoke(this, new TimerEventArgs(this)); }
private void Start() { GenerateFood(); startDay.Invoke(); }