Пример #1
0
 /// <summary>Tries loading settings from local storage. Uses max theme and sfx volume as fallback on fail</summary>
 private void LoadSettings()
 {
     if (!GameFileSystem.LoadAsJsonFromFile(SETTINGS_PATH, ref settings))
     {
         settings.ThemeVolume = maxThemeVolume;
         settings.SFXVolume   = maxSFXVolume;
         SaveSettings();
     }
 }