diff --git a/Assets/YooAsset/Runtime/DownloadSystem/RemoteTools.cs b/Assets/YooAsset/Runtime/DownloadSystem/RequestHelper.cs similarity index 97% rename from Assets/YooAsset/Runtime/DownloadSystem/RemoteTools.cs rename to Assets/YooAsset/Runtime/DownloadSystem/RequestHelper.cs index 4b40d3b..22f4652 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/RemoteTools.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/RequestHelper.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace YooAsset { - public class RemoteTools + public class RequestHelper { /// /// 记录网络请求失败事件的次数 diff --git a/Assets/YooAsset/Runtime/DownloadSystem/RemoteTools.cs.meta b/Assets/YooAsset/Runtime/DownloadSystem/RequestHelper.cs.meta similarity index 100% rename from Assets/YooAsset/Runtime/DownloadSystem/RemoteTools.cs.meta rename to Assets/YooAsset/Runtime/DownloadSystem/RequestHelper.cs.meta diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DownloadManifestOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DownloadManifestOperation.cs index 144e09a..3c6534b 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DownloadManifestOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DownloadManifestOperation.cs @@ -29,7 +29,7 @@ namespace YooAsset } internal override void Start() { - RequestCount = RemoteTools.GetRequestFailedCount(_persistent.PackageName, nameof(DownloadManifestOperation)); + RequestCount = RequestHelper.GetRequestFailedCount(_persistent.PackageName, nameof(DownloadManifestOperation)); _steps = ESteps.DownloadPackageHashFile; } internal override void Update() @@ -58,7 +58,7 @@ namespace YooAsset _steps = ESteps.Done; Status = EOperationStatus.Failed; Error = _downloader1.GetError(); - RemoteTools.RecordRequestFailed(_persistent.PackageName, nameof(DownloadManifestOperation)); + RequestHelper.RecordRequestFailed(_persistent.PackageName, nameof(DownloadManifestOperation)); } else { @@ -89,7 +89,7 @@ namespace YooAsset _steps = ESteps.Done; Status = EOperationStatus.Failed; Error = _downloader2.GetError(); - RemoteTools.RecordRequestFailed(_persistent.PackageName, nameof(DownloadManifestOperation)); + RequestHelper.RecordRequestFailed(_persistent.PackageName, nameof(DownloadManifestOperation)); } else { diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/LoadRemoteManifestOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/LoadRemoteManifestOperation.cs index 860bd46..7021fbe 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/LoadRemoteManifestOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/LoadRemoteManifestOperation.cs @@ -39,7 +39,7 @@ namespace YooAsset } internal override void Start() { - RequestCount = RemoteTools.GetRequestFailedCount(_packageName, nameof(LoadRemoteManifestOperation)); + RequestCount = RequestHelper.GetRequestFailedCount(_packageName, nameof(LoadRemoteManifestOperation)); _steps = ESteps.DownloadPackageHashFile; } internal override void Update() @@ -90,7 +90,7 @@ namespace YooAsset _steps = ESteps.Done; Status = EOperationStatus.Failed; Error = _downloader.GetError(); - RemoteTools.RecordRequestFailed(_packageName, nameof(LoadRemoteManifestOperation)); + RequestHelper.RecordRequestFailed(_packageName, nameof(LoadRemoteManifestOperation)); } else { diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageHashOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageHashOperation.cs index 6467280..a940f57 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageHashOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageHashOperation.cs @@ -33,7 +33,7 @@ namespace YooAsset } internal override void Start() { - RequestCount = RemoteTools.GetRequestFailedCount(_packageName, nameof(QueryRemotePackageHashOperation)); + RequestCount = RequestHelper.GetRequestFailedCount(_packageName, nameof(QueryRemotePackageHashOperation)); _steps = ESteps.DownloadPackageHash; } internal override void Update() @@ -62,7 +62,7 @@ namespace YooAsset _steps = ESteps.Done; Status = EOperationStatus.Failed; Error = _downloader.GetError(); - RemoteTools.RecordRequestFailed(_packageName, nameof(QueryRemotePackageHashOperation)); + RequestHelper.RecordRequestFailed(_packageName, nameof(QueryRemotePackageHashOperation)); } else { diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageVersionOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageVersionOperation.cs index 46f1e41..4cfacb1 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageVersionOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/QueryRemotePackageVersionOperation.cs @@ -33,7 +33,7 @@ namespace YooAsset } internal override void Start() { - RequestCount = RemoteTools.GetRequestFailedCount(_packageName, nameof(QueryRemotePackageVersionOperation)); + RequestCount = RequestHelper.GetRequestFailedCount(_packageName, nameof(QueryRemotePackageVersionOperation)); _steps = ESteps.DownloadPackageVersion; } internal override void Update() @@ -62,7 +62,7 @@ namespace YooAsset _steps = ESteps.Done; Status = EOperationStatus.Failed; Error = _downloader.GetError(); - RemoteTools.RecordRequestFailed(_packageName, nameof(QueryRemotePackageVersionOperation)); + RequestHelper.RecordRequestFailed(_packageName, nameof(QueryRemotePackageVersionOperation)); } else {