protected override void UpdateDisplay() { Slider.minValue = GameOption.Min; Slider.maxValue = GameOption.Max; Slider.wholeNumbers = true; Slider.value = GameOption.ValueAs <int>(); MinLabel.text = GameOption.Min.ToString(); MaxLabel.text = GameOption.Max.ToString(); }
protected override void UpdateDisplay() { Toggle.SetIsOnWithoutNotify(GameOption.ValueAs <bool>()); }