From 3d1c4fdc8716cc0acf9a6d3736e668b393332459 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 7 Mar 2022 14:37:38 +0800 Subject: [PATCH] Update patch system --- .../Runtime/PatchSystem/Download/HttpDownloader.cs | 2 ++ .../Runtime/PatchSystem/PlayMode/EditorPlayModeImpl.cs | 8 -------- .../Runtime/PatchSystem/PlayMode/HostPlayModeImpl.cs | 10 ---------- .../PatchSystem/PlayMode/OfflinePlayModeImpl.cs | 10 ---------- 4 files changed, 2 insertions(+), 28 deletions(-) diff --git a/Assets/YooAsset/Runtime/PatchSystem/Download/HttpDownloader.cs b/Assets/YooAsset/Runtime/PatchSystem/Download/HttpDownloader.cs index 3252c81..532b396 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/Download/HttpDownloader.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/Download/HttpDownloader.cs @@ -63,6 +63,8 @@ namespace YooAsset internal void SendRequest(int failedTryAgain, int timeout) { + _failedTryAgain = failedTryAgain; + _timeout = timeout; } internal void Update() { diff --git a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorPlayModeImpl.cs b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorPlayModeImpl.cs index 218d528..59e663b 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorPlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/EditorPlayModeImpl.cs @@ -24,14 +24,6 @@ namespace YooAsset return 0; } - /// - /// 获取内置资源标记列表 - /// - public string[] GetManifestBuildinTags() - { - return new string[0]; - } - #region IBundleServices接口 AssetBundleInfo IBundleServices.GetAssetBundleInfo(string bundleName) { diff --git a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/HostPlayModeImpl.cs b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/HostPlayModeImpl.cs index 533b6e6..20ca85f 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/HostPlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/HostPlayModeImpl.cs @@ -52,16 +52,6 @@ namespace YooAsset return LocalPatchManifest.ResourceVersion; } - /// - /// 获取内置资源标记列表 - /// - public string[] GetManifestBuildinTags() - { - if (LocalPatchManifest == null) - return new string[0]; - return LocalPatchManifest.GetBuildinTags(); - } - /// /// 创建下载器 /// diff --git a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/OfflinePlayModeImpl.cs b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/OfflinePlayModeImpl.cs index 66e7ba2..1aa476a 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/PlayMode/OfflinePlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/PlayMode/OfflinePlayModeImpl.cs @@ -28,16 +28,6 @@ namespace YooAsset return AppPatchManifest.ResourceVersion; } - /// - /// 获取内置资源标记列表 - /// - public string[] GetManifestBuildinTags() - { - if (AppPatchManifest == null) - return new string[0]; - return AppPatchManifest.GetBuildinTags(); - } - #region IBundleServices接口 AssetBundleInfo IBundleServices.GetAssetBundleInfo(string bundleName) {