Esempio n. 1
0
 private void UpdateTimeOfDay()
 {
     DawnDuskSlider.value = WeatherMakerScript.Instance.TimeOfDay;
     if (TimeOfDayText.IsActive() && ShowTimeOfDay)
     {
         TimeSpan t = TimeSpan.FromSeconds(WeatherMakerScript.Instance.TimeOfDay);
         TimeOfDayText.text = string.Format("{0:00}:{1:00}:{2:00}", t.Hours, t.Minutes, t.Seconds);
     }
 }
Esempio n. 2
0
 private void UpdateTimeOfDay()
 {
     if (WeatherMakerDayNightCycleManagerScript.Instance != null)
     {
         DawnDuskSlider.value = WeatherMakerDayNightCycleManagerScript.Instance.TimeOfDay;
         if (TimeOfDayText.IsActive() && ShowTimeOfDay)
         {
             System.TimeSpan t = System.TimeSpan.FromSeconds(WeatherMakerDayNightCycleManagerScript.Instance.TimeOfDay);
             TimeOfDayText.text = string.Format("{0:00}:{1:00}:{2:00}", t.Hours, t.Minutes, t.Seconds);
         }
         TimeOfDayCategoryText.text = WeatherMakerDayNightCycleManagerScript.Instance.TimeOfDayCategory.ToString();
     }
 }