コード例 #1
0
 private void CheckForTimeChange()
 {
     if (myCycle == cycle.dawn || myCycle == cycle.noon)
     {
         dayNight.DayTime();
     }
     else if (myCycle == cycle.dusk || myCycle == cycle.night)
     {
         dayNight.NightTime();
     }
 }
コード例 #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();
     }
 }