public IEnumerator TransitionToDusk() { triggerDuskTransition = false; myCycle = Cycle.dusk; dayNight.DuskTime(); yield return(StartCoroutine("DuskTransition")); }
private void CheckForTimeChange() { if (myCycle == cycle.dawn) { dayNight.DawnTime(); } else if (myCycle == cycle.noon) { dayNight.DayTime(); } else if (myCycle == cycle.dusk) { dayNight.DuskTime(); } else if (myCycle == cycle.night) { dayNight.NightTime(); } }