示例#1
0
 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();
 }
示例#2
0
 protected override void UpdateDisplay()
 {
     Toggle.SetIsOnWithoutNotify(GameOption.ValueAs <bool>());
 }