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(); } }
public void CheckForTimeChange() { if (myCycle == Cycle.dawn) { dayNight.DawnTime(); } else if (myCycle == Cycle.noon) { //isNight = false; dayNight.DayTime(); } else if (myCycle == Cycle.dusk) { StartCoroutine("TransitionToDusk"); //nextTime = Cycle.night; //dayNight.DuskTime(); } else if (myCycle == Cycle.night) { StartCoroutine("TransitionToNight"); dayNight.NightTime(); } }