/// <summary> /// Creates the default settings /// </summary> /// <returns></returns> public static ControlsSettingsModel CreateDefault() { ControlsSettingsModel defaultSetting = new ControlsSettingsModel { InvertVertical = false, Sensitivity = 50f }; defaultSetting.AcceptChanges(); return defaultSetting; }
/// <summary> /// Resets the settings. /// </summary> public void ResetSettings() { Difficulty = 0; Language = 0; VideoSettings = VideoSettingsModel.CreateDefault(); if (AudioSettings == null) { AudioSettings = AudioSettingsModel.CreateDefault(); } else { AudioSettings.ResetToDefault(); } if (ControlsSettings == null) { ControlsSettings = ControlsSettingsModel.CreateDefault(); } else { ControlsSettings.ResetToDefault(); } }