|
@@ -18,6 +18,9 @@ namespace YooAsset
|
|
|
Done,
|
|
|
}
|
|
|
|
|
|
+ //从服务器下载重试次数
|
|
|
+ private const int RetryCnt = 2;
|
|
|
+
|
|
|
private ESteps _steps = ESteps.None;
|
|
|
private string _fileLoadPath;
|
|
|
private bool _isWaitForAsyncComplete = false;
|
|
@@ -73,7 +76,7 @@ namespace YooAsset
|
|
|
// 1. 从服务器下载
|
|
|
if (_steps == ESteps.Download)
|
|
|
{
|
|
|
- int failedTryAgain = int.MaxValue;
|
|
|
+ int failedTryAgain = RetryCnt;
|
|
|
_downloader = DownloadSystem.BeginDownload(MainBundleInfo, failedTryAgain);
|
|
|
_steps = ESteps.CheckDownload;
|
|
|
}
|