// Start is called before the first frame update void Start() { GameSettings gameSettings = PreferencesService.LoadSettings(); GameSettings updateSettings = new GameSettings(); updateSettings.Lighting = 70; updateSettings.Volume = 70; updateSettings.FieldOfView = 70; PreferencesService.WriteSettings(updateSettings); }
public void Apply() { PreferencesService.WriteSettings(gameSettings); }