private void Start() { _savedSettings = JsonLoader.LoadSettings(); _keys = _savedSettings.Keys; fps.text = _savedSettings.Resolution.refreshRate.ToString(); volume.value = _savedSettings.Volume; _resolution = _savedSettings.Resolution; for (int i = 0; i < 4; i++) { keyPresets[i].text = _keys[i].ToString(); } for (int i = 0; i < Screen.resolutions.Length; i++) { Dropdown.OptionData option = new Dropdown.OptionData(); option.text = Screen.resolutions[i].width + " x " + Screen.resolutions[i].height; dropDownRes.options.Add(option); dropDownRes.value = i; } for (int i = 0; i < Enum.GetValues(typeof(FullScreenMode)).Length; i++) { Dropdown.OptionData option = new Dropdown.OptionData(); option.text = Enum.GetValues(typeof(FullScreenMode)).GetValue(i).ToString(); dropDownScreenMode.options.Add(option); dropDownScreenMode.value = i; } }