Exemple #1
0
    //所有的下载任务都完成了
    private void AllDownloadTaskFinished(bool updateVersionTxt)
    {
        Debug.Log("All Task Finish");

        if (updateVersionTxt)
        {
            //替换本地的Version.txt为web服务器上的,保持版本最新
            MyTools.CreateFile(this.m_localPath, m_versionTxtName, this.m_remoteVersionData);
            Debug.Log(m_versionTxtName + "已更新");
        }

        this.m_localVersion      = null;
        this.m_remoteVersion     = null;
        this.m_remoteVersionData = null;

        //释放downloadmgr
        DownloadMgr.Inst.Destroy();

        if (m_versionMgrCallback != null)
        {
            this.m_versionMgrCallback();
        }
    }