From 26dbe9dfdd614f03efa629770f31a376bbdda2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Thu, 13 Feb 2025 19:08:23 +0800 Subject: [PATCH] update extension sample --- .../TiktokFileSystem/Operation/TTFSDownloadFileOperation.cs | 4 ++-- .../TiktokFileSystem/Operation/TTFSLoadBundleOperation.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSDownloadFileOperation.cs b/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSDownloadFileOperation.cs index 039a32c2..fdec01b2 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSDownloadFileOperation.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSDownloadFileOperation.cs @@ -7,7 +7,7 @@ internal class TTFSDownloadFileOperation : DefaultDownloadFileOperation { private TiktokFileSystem _fileSystem; private ESteps _steps = ESteps.None; - + internal TTFSDownloadFileOperation(TiktokFileSystem fileSystem, PackageBundle bundle, DownloadParam param) : base(bundle, param) { _fileSystem = fileSystem; @@ -84,7 +84,7 @@ internal class TTFSDownloadFileOperation : DefaultDownloadFileOperation private void CreateWebRequest() { //TODO : 抖音小游戏没有找到预下载方法 - _webRequest = UnityWebRequestAssetBundle.GetAssetBundle(_requestURL); + _webRequest = UnityWebRequest.Get(_requestURL); _webRequest.disposeDownloadHandlerOnDispose = true; _webRequest.SendWebRequest(); } diff --git a/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSLoadBundleOperation.cs b/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSLoadBundleOperation.cs index 5e780de9..c5658cdc 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSLoadBundleOperation.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/TiktokFileSystem/Operation/TTFSLoadBundleOperation.cs @@ -41,7 +41,7 @@ internal class TTFSLoadBundleOperation : FSLoadBundleOperation if (_bundle.Encrypted) { - _downloadAssetBundleOp = new DownloadWebEncryptAssetBundleOperation(_fileSystem.DecryptionServices, _bundle, downloadParam); + _downloadAssetBundleOp = new DownloadWebEncryptAssetBundleOperation(false, _fileSystem.DecryptionServices, _bundle, downloadParam); OperationSystem.StartOperation(_fileSystem.PackageName, _downloadAssetBundleOp); } else