From f9d40987eb7462010c7e432a82d647714583cf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Sun, 7 Jul 2024 16:16:00 +0800 Subject: [PATCH] update extension sample --- .../Operation/WXFSLoadBundleOperation.cs | 5 ++--- .../Runtime/WechatFileSystem/WechatFileSystem.cs | 11 ----------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs b/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs index 76c2bc4..0a73f99 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs @@ -60,10 +60,9 @@ internal class WXFSLoadBundleOperation : FSLoadBundleOperation } } } - - public override void WaitForAsyncComplete() + internal override void InternalWaitForAsyncComplete() { - if (IsDone == false) + if (_steps != ESteps.Done) { _steps = ESteps.Done; Status = EOperationStatus.Failed; diff --git a/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/WechatFileSystem.cs b/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/WechatFileSystem.cs index 2061323..1a2a916 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/WechatFileSystem.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Runtime/WechatFileSystem/WechatFileSystem.cs @@ -30,17 +30,6 @@ internal class WechatFileSystem : IFileSystem /// public string PackageName { private set; get; } - /// - /// 文件访问权限 - /// - public EFileAccess FileSystemAccess - { - get - { - return EFileAccess.ReadWrite; - } - } - /// /// 文件根目录 ///