From 8a2dc86cf71e55149f77986037c7d27809d3f0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Fri, 27 Dec 2024 18:37:29 +0800 Subject: [PATCH] update code summary --- .../Runtime/DownloadSystem/DownloadSystemHelper.cs | 2 +- .../Operation/DownloadNormalFileOperation.cs | 6 +++--- .../Operation/DownloadResumeFileOperation.cs | 6 +++--- .../Operation/VerifyTempFileOperation.cs | 2 +- .../Operation/InstantiateOperation.cs | 2 +- .../Runtime/ResourcePackage/ResourcePackage.cs | 14 +++++++------- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs index 52643569..54e182e5 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs @@ -58,7 +58,7 @@ namespace YooAsset /// public static bool IsRequestLocalFile(string url) { - //TODO : UNITY_STANDALONE_OSX平台目前无法确定 + //TODO UNITY_STANDALONE_OSX平台目前无法确定 if (url.StartsWith("file:")) return true; if (url.StartsWith("jar:file:")) diff --git a/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadNormalFileOperation.cs b/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadNormalFileOperation.cs index fa8a4fb4..571883c5 100644 --- a/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadNormalFileOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadNormalFileOperation.cs @@ -133,7 +133,7 @@ namespace YooAsset // 重新尝试下载 if (_steps == ESteps.TryAgain) { - //TODO : 拷贝本地文件失败后不再尝试! + //TODO 拷贝本地文件失败后不再尝试! if (_isReuqestLocalFile) { Status = EOperationStatus.Failed; @@ -166,7 +166,7 @@ namespace YooAsset } internal override void InternalWaitForAsyncComplete() { - //TODO : 防止下载器挂起陷入无限死循环! + //TODO 防止下载器挂起陷入无限死循环! if (_steps == ESteps.None) { InternalOnStart(); @@ -174,7 +174,7 @@ namespace YooAsset while (true) { - //TODO : 如果是导入或解压本地文件,执行等待完毕 + //TODO 如果是导入或解压本地文件,执行等待完毕 if (_isReuqestLocalFile) { InternalOnUpdate(); diff --git a/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadResumeFileOperation.cs b/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadResumeFileOperation.cs index 1655368a..402fae26 100644 --- a/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadResumeFileOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/DownloadResumeFileOperation.cs @@ -155,7 +155,7 @@ namespace YooAsset // 重新尝试下载 if (_steps == ESteps.TryAgain) { - //TODO : 拷贝本地文件失败后不再尝试! + //TODO 拷贝本地文件失败后不再尝试! if (_isReuqestLocalFile) { Status = EOperationStatus.Failed; @@ -188,7 +188,7 @@ namespace YooAsset } internal override void InternalWaitForAsyncComplete() { - //TODO : 防止下载器挂起陷入无限死循环! + //TODO 防止下载器挂起陷入无限死循环! if (_steps == ESteps.None) { InternalOnStart(); @@ -196,7 +196,7 @@ namespace YooAsset while (true) { - //TODO : 如果是导入或解压本地文件,执行等待完毕 + //TODO 如果是导入或解压本地文件,执行等待完毕 if (_isReuqestLocalFile) { InternalOnUpdate(); diff --git a/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/VerifyTempFileOperation.cs b/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/VerifyTempFileOperation.cs index de79c21a..bc3199da 100644 --- a/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/VerifyTempFileOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/CacheSystem/Operation/VerifyTempFileOperation.cs @@ -70,7 +70,7 @@ namespace YooAsset { while (true) { - //TODO : 等待子线程验证文件完毕,该操作会挂起主线程 + //TODO 等待子线程验证文件完毕,该操作会挂起主线程 InternalOnUpdate(); if (IsDone) break; diff --git a/Assets/YooAsset/Runtime/ResourceManager/Operation/InstantiateOperation.cs b/Assets/YooAsset/Runtime/ResourceManager/Operation/InstantiateOperation.cs index f0e0bad7..75b85e68 100644 --- a/Assets/YooAsset/Runtime/ResourceManager/Operation/InstantiateOperation.cs +++ b/Assets/YooAsset/Runtime/ResourceManager/Operation/InstantiateOperation.cs @@ -74,7 +74,7 @@ namespace YooAsset } #if UNITY_2023_3_OR_NEWER - //TODO : 官方BUG + //TODO 官方BUG // BUG环境:Windows平台,Unity2022.3.41f1版本,编辑器模式。 // BUG描述:异步实例化Prefab预制体,有概率丢失Mono脚本里序列化的数组里某个成员! //_steps = ESteps.CloneAsync; diff --git a/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs b/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs index 0342e6f6..e5e6fb6a 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs @@ -209,7 +209,7 @@ namespace YooAsset } /// - /// 向网络端请求最新的资源版本 + /// 请求最新的资源版本 /// /// 在URL末尾添加时间戳 /// 超时时间(默认值:60秒) @@ -220,9 +220,9 @@ namespace YooAsset } /// - /// 向网络端请求并更新清单 + /// 加载指定版本的资源清单 /// - /// 更新的包裹版本 + /// 包裹版本 /// 超时时间(默认值:60秒) public UpdatePackageManifestOperation UpdatePackageManifestAsync(string packageVersion, int timeout = 60) { @@ -240,7 +240,7 @@ namespace YooAsset /// /// 预下载指定版本的包裹资源 /// - /// 下载的包裹版本 + /// 包裹版本 /// 超时时间(默认值:60秒) public PreDownloadContentOperation PreDownloadContentAsync(string packageVersion, int timeout = 60) { @@ -272,7 +272,7 @@ namespace YooAsset #region 包裹信息 /// - /// 获取当前激活包裹的版本信息 + /// 获取当前加载包裹的版本信息 /// public string GetPackageVersion() { @@ -281,7 +281,7 @@ namespace YooAsset } /// - /// 获取当前激活包裹的备注信息 + /// 获取当前加载包裹的备注信息 /// public string GetPackageNote() { @@ -290,7 +290,7 @@ namespace YooAsset } /// - /// 获取当前激活包裹的详细信息 + /// 获取当前加载包裹的详细信息 /// public PackageDetails GetPackageDetails() {