示例#1
0
 private void OnTimeUpdate(int h, int m, int s, KS_TimeManager.DayTimeZone zone)
 {
     timeText.text    = "Current time - " + timeManager.GetTimeFormatted();
     zoneText.text    = "Current zone - " + zone.ToString();
     latLongText.text = "Lat/long - " + dayNight.latitude + " : " + dayNight.longitude;
     scaletext.text   = "Scale - " + timeManager.secondsPerMinute.ToString("0.000") + "s per minute";
 }
示例#2
0
 private void OnTimeUpdate(int h, int m, int s, KS_TimeManager.DayTimeZone zone)
 {
     if (h > OnHour || h < OffHour)
     {
         if (!toggleObject.activeSelf)
         {
             toggleObject.SetActive(true);
         }
     }
     else
     {
         if (toggleObject.activeSelf)
         {
             toggleObject.SetActive(false);
         }
     }
 }
示例#3
0
 void OnTimeUpdate(int h, int m, int s, KS_TimeManager.DayTimeZone zone)
 {
     UpdateSunPos(h, m, s);
     UpdateEnvironment();
 }
示例#4
0
 void OnTimeUpdate(int h, int m, int s, KS_TimeManager.DayTimeZone zone)
 {
     timeBox.text = h.ToString("00") + ":" + m.ToString("00");
     zoneBox.text = zone.ToString().ToUpper();
 }