private void OnMainFileDownloadSuccess(byte[] pBytes)
    {
        string json = Encoding.UTF8.GetString(pBytes);

        Debug.Log(json);
        MainJson mainJson = JsonUtility.FromJson <MainJson>(json);

        Application.targetFrameRate = AppConst.s_FrameRate = mainJson.frameRate;
        AppConst.s_IsDebug          = mainJson.isDebug;
        AppConst.s_Host             = mainJson.host;
        AppConst.s_AppVersion       = AppVersion.Create(mainJson.version);
        //资源版本取PlayerPrefs存的
        if (PlayerPrefs.HasKey("ResVersion"))
        {
            AppConst.s_AppVersion.d = PlayerPrefs.GetInt("ResVersion");
        }

        foreach (MainTextJson mainTextJson in mainJson.texts)
        {
            GameMain.Instance.m_Texts[mainTextJson.id] = mainTextJson.text;
        }

        //下载远程Version配置
        string path = AppConst.GetRemoteURL("Version.json");

        DownloadManager.Instance.DownloadFileAsync(path, OnVersionFileDownloadSuccess, pProgressCallback: OnVersionFileDowloadProgress);
    }