Exemplo n.º 1
0
 public IEnumerator TransitionToDusk()
 {
     triggerDuskTransition = false;
     myCycle = Cycle.dusk;
     dayNight.DuskTime();
     yield return(StartCoroutine("DuskTransition"));
 }
Exemplo n.º 2
0
 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();
     }
 }