// loads the game settings public void LoadSettings() { MetricsLogger prefLog = new MetricsLogger(); // sets the logger file prefLog.SetLoggerFile(FILE_NAME); prefLog.LoadMetrics(); // get the contents float value; // master volume value = prefLog.GetMetricFromLogger(LBL_MASTER_VOL); SetMasterVolume(value); // bgm value = prefLog.GetMetricFromLogger(LBL_BGM_VOL); SetBgmVolume(value); // sound effects value = prefLog.GetMetricFromLogger(LBL_SFX_VOL); SetSfxVolume(value); // adjust all volume settings SettingsInterface.AdjustVolume(); }