コード例 #1
0
ファイル: UIProduct.cs プロジェクト: ClarkQi/ToysHouse
        private void OnDownloadSuccess(object sender, GameEventArgs e)
        {
            DownloadSuccessEventArgs args = (DownloadSuccessEventArgs)e;

            if (args.UserData != this)
            {
                return;
            }
            Debug.Log(_txtName.text + " 下载完成");
            DownLoadState = DownloadState.Download;
            //解压文件
            ZipUtility.AsyncUnzipFile(args.DownloadPath, _savePath, null, new UnzipCallback(args.DownloadPath, OnUnzipSucceed));
            StopCoroutine("CheckUnzipOver");
            StartCoroutine("CheckUnzipOver");
            DownLoadState = DownloadState.Unziping;
        }
コード例 #2
0
ファイル: AutoLoadDataSet.cs プロジェクト: ClarkQi/ToysHouse
        IEnumerator StartUnzip()
        {
            yield return(0);

            isUnzip = true;
            ZipUtility.AsyncUnzipFile(zipPath, Application.persistentDataPath, null, new UnzipCallback(zipPath, OnUnzipFileSucceed));
            yield return(new WaitWhile(() => isUnzip));

            StartCoroutine(LoadUpdate());
            EntryInstance.UI.OpenDialog(new DialogParams()
            {
                Mode        = 1,
                Title       = "提示",
                Message     = "识别图更新成功!",
                ConfirmText = "确定"
            });
        }