| | |
| | |
|
| | | if (VersionUtility.Instance.NeedDownAsset())
|
| | | {
|
| | | AssetVersionUtility.GetAssetVersionFile();
|
| | | var remoteURL = StringUtility.Contact(VersionUtility.Instance.versionInfo.GetResourcesURL(VersionConfig.Get().branch), Language.fixPath, "/config/PriorBundle.txt");
|
| | | var localURL = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, "config/PriorBundle.txt");
|
| | | var downloadTask = new DownloadTask(remoteURL, localURL);
|
| | | downloadTask.BeginDownload(AssetVersionUtility.OnDownLoadPriorBundle);
|
| | |
|
| | | //AssetVersionUtility.GetAssetVersionFile();
|
| | | done = false;
|
| | | progress = 0f;
|
| | | }
|
| | |
| | |
|
| | | }
|
| | |
|
| | | public static void OnDownLoadPriorBundle(DownloadTask task)
|
| | | {
|
| | | if (task.IsDone)
|
| | | {
|
| | | GetAssetVersionFile();
|
| | | }
|
| | | else
|
| | | {
|
| | | Debug.Log("OnDownLoadPriorBundle fail - before AssetVersion");
|
| | | }
|
| | | }
|
| | |
|
| | | public static void GetAssetVersionFile()
|
| | | {
|
| | | checkAssetCompleted = false;
|