private void CheckForTimeChange()
 {
     if (myCycle == cycle.dawn || myCycle == cycle.noon)
     {
         dayNight.DayTime();
     }
     else if (myCycle == cycle.dusk || myCycle == cycle.night)
     {
         dayNight.NightTime();
     }
 }
Esempio n. 2
0
 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();
     }
 }