示例#1
0
    // 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);
    }
示例#2
0
 public void Apply()
 {
     PreferencesService.WriteSettings(gameSettings);
 }