/// <summary> /// Activates or Deactivates all Sliders but one. /// </summary> /// <param name="value"> The value the Sliders shall be set to (true/false) </param> /// <param name="exception"> Slider that shall not be deactivated. </param> public void SetOtherSliderInteractive(bool value, UnitSlider exception) { foreach (UnitSlider slider in AppManager.Instance.Game.UnitSliders) { if (slider == exception) { continue; } slider.SetInteractable(value); } }