public static bool ValidateSettings(MenuSettings settings) { if (settings == null) { return(false); } if (settings.volume < 0 || settings.volume > 1) { Debug.LogError("Volume Was Loaded Beyond The Range Of 0 - 1, Menu Settings Will Reset"); return(false); } if (settings.resolution > GameMenu.GetValidResolutions().Length - 1 || settings.resolution < -1) { Debug.LogError("Resolutions Is Invalid, Menu Settings Will Reset"); return(false); } return(true); }