Ejemplo n.º 1
0
 private void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Debug.LogError("Somehow multiple transition scripts!");
         enabled = false;
         return;
     }
 }
Ejemplo n.º 2
0
 public void SyncSlider()
 {
     SunriseSlider.SetValueWithoutNotify(GetSliderValueFromTimeSpan(lux.SolarTimes.Sunrise.AsTimeSpan()));
     SunsetSlider.SetValueWithoutNotify(GetSliderValueFromTimeSpan(lux.SolarTimes.Sunset.AsTimeSpan()));
     TransitionSlider.SetValueWithoutNotify(GetSliderValueFromTimeSpan(lux.SettingsService.ConfigurationTransitionDuration));
 }
Ejemplo n.º 3
0
 public void TansitionedOut()
 {
     instance = null;
     OnTransitionedOut?.Invoke();
 }
 private void MoveCursorMenu(int index)
 {
     TransitionSlider.OnApplyTemplate();
     GridCursor.Margin = new Thickness(0, 40 + (85 * index), 0, 0);
 }