@@ -53,7 +53,7 @@ public WebRemoteServices(string buildinPackRoot)
5353 }
5454
5555 [ UnityEngine . Scripting . Preserve ]
56- string IRemoteServices . GetRemoteMainURL ( string fileName , string packageVersion )
56+ string IRemoteServices . GetRemoteMainURL ( string fileName , string packageVersion )
5757 {
5858 return GetFileLoadURL ( fileName , packageVersion ) ;
5959 }
@@ -73,7 +73,6 @@ private string GetFileLoadURL(string fileName, string packageVersion)
7373 url = DownloadSystemHelper . ConvertToWWWPath ( filePath ) ;
7474 _mapping . Add ( fileName , url ) ;
7575 }
76-
7776 //Debug.LogError($"WeChatFileSystem GetFileLoadURL url:{url}");
7877 return url ;
7978 }
@@ -164,8 +163,8 @@ public virtual FSClearUnusedBundleFilesOperation ClearUnusedBundleFilesAsync(Pac
164163 [ UnityEngine . Scripting . Preserve ]
165164 public virtual FSDownloadFileOperation DownloadFileAsync ( PackageBundle bundle , DownloadParam param )
166165 {
167- param . MainURL = RemoteServices . GetRemoteMainURL ( bundle . FileName , PackageVersion ) ;
168- param . FallbackURL = RemoteServices . GetRemoteFallbackURL ( bundle . FileName , PackageVersion ) ;
166+ param . MainURL = RemoteServices . GetRemoteMainURL ( bundle . FileName , PackageVersion ) ;
167+ param . FallbackURL = RemoteServices . GetRemoteFallbackURL ( bundle . FileName , PackageVersion ) ;
169168 var operation = new KSFSDownloadFileOperation ( this , bundle , param ) ;
170169 OperationSystem . StartOperation ( PackageName , operation ) ;
171170 return operation ;
@@ -174,15 +173,15 @@ public virtual FSDownloadFileOperation DownloadFileAsync(PackageBundle bundle, D
174173 [ UnityEngine . Scripting . Preserve ]
175174 public virtual FSLoadBundleOperation LoadBundleFile ( PackageBundle bundle )
176175 {
177- var operation = new KSFSLoadBundleOperation ( this , bundle , PackageVersion ) ;
176+ var operation = new KSFSLoadBundleOperation ( this , bundle , PackageVersion ) ;
178177 OperationSystem . StartOperation ( PackageName , operation ) ;
179178 return operation ;
180179 }
181180
182181 [ UnityEngine . Scripting . Preserve ]
183182 public virtual void UnloadBundleFile ( PackageBundle bundle , object result )
184183 {
185- var assetBundle = ( result as KSWASM . KSAssetBundle ) ;
184+ AssetBundle assetBundle = result as AssetBundle ;
186185 if ( assetBundle != null )
187186 {
188187 assetBundle . Unload ( true ) ;
@@ -213,7 +212,7 @@ public virtual void OnCreate(string packageName, string rootDirectory)
213212 string webRoot = PathUtility . Combine ( Application . streamingAssetsPath , YooAssetSettingsData . Setting . DefaultYooFolderName , packageName ) ;
214213 RemoteServices = new WebRemoteServices ( webRoot ) ;
215214 }
216-
215+
217216 _fileSystemManager = KSWASM . KSBase . GetFileSystemManager ( ) ;
218217#if UNITY_EDITOR
219218 _fileCacheRoot = Application . persistentDataPath ;
0 commit comments