public void Load()
 {
     if (type == SettingType.Int)
     {
         int   intValue   = Convert.ToInt32(SettingsManager.GetSetting(key, type));
         float floatValue = (float)intValue * 0.01f;
         GetComponent <Slider>().value = floatValue;
     }
     else if (type == SettingType.Float)
     {
         GetComponent <Slider>().value = Convert.ToSingle(SettingsManager.GetSetting(key, type));
     }
 }
Beispiel #2
0
 public void Load()
 {
     GetComponent <Dropdown>().value = System.Convert.ToInt32(SettingsManager.GetSetting(key, SettingType.Int));
 }
 public void Load()
 {
     GetComponent <InputField>().text = SettingsManager.GetSetting(key, type);
 }
 public void Load()
 {
     buttonText.text = SettingsManager.GetSetting(button, SettingType.Button);
 }