示例#1
0
    public bool TryGetSetting(Settings.SettingName setting, Slider slider)
    {
        object value;
        bool   result = TryGetSetting(setting, out value);

        if (result)
        {
            slider.value = (float)value;
        }
        return(result);
    }
示例#2
0
 public void ChangeSetting(Settings.SettingName setting, Slider slider)
 {
     ChangeSetting(setting, slider.value);
 }
示例#3
0
 public bool TryGetSetting(Settings.SettingName setting, out object value)
 {
     return(Settings.TryGetSetting(setting, out value));
 }
示例#4
0
 public void ChangeSetting(Settings.SettingName setting, object value)
 {
     Settings.ChangeSetting(setting, value);
 }