// load/save functions
    public static void Load()
    {
        SettingsFile file = new SettingsFile();

        //open the file and deserialize the settings
        try
        {
            string s = System.IO.File.ReadAllText("settings.json");
            file.ParseJSON(ref Settings.local, new JSONObject(s));
        }
        catch (System.Exception ex)
        {
            Debug.LogError(ex.Message);
        }
    }