mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 01:30:14 +00:00
update extension sample
This commit is contained in:
@@ -84,7 +84,7 @@ internal class TTFSDownloadFileOperation : DefaultDownloadFileOperation
|
|||||||
private void CreateWebRequest()
|
private void CreateWebRequest()
|
||||||
{
|
{
|
||||||
//TODO : 抖音小游戏没有找到预下载方法
|
//TODO : 抖音小游戏没有找到预下载方法
|
||||||
_webRequest = UnityWebRequestAssetBundle.GetAssetBundle(_requestURL);
|
_webRequest = UnityWebRequest.Get(_requestURL);
|
||||||
_webRequest.disposeDownloadHandlerOnDispose = true;
|
_webRequest.disposeDownloadHandlerOnDispose = true;
|
||||||
_webRequest.SendWebRequest();
|
_webRequest.SendWebRequest();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ internal class TTFSLoadBundleOperation : FSLoadBundleOperation
|
|||||||
|
|
||||||
if (_bundle.Encrypted)
|
if (_bundle.Encrypted)
|
||||||
{
|
{
|
||||||
_downloadAssetBundleOp = new DownloadWebEncryptAssetBundleOperation(_fileSystem.DecryptionServices, _bundle, downloadParam);
|
_downloadAssetBundleOp = new DownloadWebEncryptAssetBundleOperation(false, _fileSystem.DecryptionServices, _bundle, downloadParam);
|
||||||
OperationSystem.StartOperation(_fileSystem.PackageName, _downloadAssetBundleOp);
|
OperationSystem.StartOperation(_fileSystem.PackageName, _downloadAssetBundleOp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user