@@ -21,9 +21,9 @@ protected override void OnEnter(IFsm<IProcedureManager> procedureOwner)
21
21
void CreateDownloader ( IFsm < IProcedureManager > procedureOwner )
22
22
{
23
23
// Debug.Log("创建补丁下载器.");
24
- int downloadingMaxNum = 10 ;
25
- int failedTryAgain = 3 ;
26
- ResourceDownloaderOperation downloader = YooAssets . CreateResourceDownloader ( downloadingMaxNum , failedTryAgain ) ;
24
+ int downloadingMaxNum = 10 ;
25
+ int failedTryAgain = 3 ;
26
+ ResourceDownloaderOperation downloader = YooAssets . CreateResourceDownloader ( downloadingMaxNum , failedTryAgain ) ;
27
27
var downloaderVarObject = new VarObject ( ) ;
28
28
downloaderVarObject . SetValue ( downloader ) ;
29
29
procedureOwner . SetData < VarObject > ( "Downloader" , downloaderVarObject ) ;
@@ -37,9 +37,9 @@ void CreateDownloader(IFsm<IProcedureManager> procedureOwner)
37
37
Debug . Log ( $ "一共发现了{ downloader . TotalDownloadCount } 个资源需要更新下载。") ;
38
38
39
39
// 发现新更新文件后,挂起流程系统
40
- int totalDownloadCount = downloader . TotalDownloadCount ;
40
+ int totalDownloadCount = downloader . TotalDownloadCount ;
41
41
long totalDownloadBytes = downloader . TotalDownloadBytes ;
42
- GameApp . Event . Fire ( this , AssetFoundUpdateFilesEventArgs . Create ( downloader . PackageName , totalDownloadCount , totalDownloadBytes ) ) ;
42
+ GameApp . Event . Fire ( this , AssetFoundUpdateFilesEventArgs . Create ( downloader . GetPackageName ( ) , totalDownloadCount , totalDownloadBytes ) ) ;
43
43
ChangeState < ProcedureDownloadWebFiles > ( procedureOwner ) ;
44
44
}
45
45
}
0 commit comments