From 97de31e9a015cf139f5293a22e1575a43dfb6733 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 24 四月 2026 14:16:02 +0800
Subject: [PATCH] WEBGL ANDROID适配

---
 Main/ResModule/AssetBundle/AssetBundleUtility.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Main/ResModule/AssetBundle/AssetBundleUtility.cs b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
index 6f8890b..f5ae8c6 100644
--- a/Main/ResModule/AssetBundle/AssetBundleUtility.cs
+++ b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
@@ -119,7 +119,7 @@
         initialized = true;
     }
 
-    private async UniTask Co_LoadMainfestFile(string _category)
+    private UniTask Co_LoadMainfestFile(string _category)
     {
         var path = AssetVersionUtility.GetAssetFilePath(StringUtility.Concat(AssetVersionUtility.EncodeFileName(_category), "_assetbundle"), false);
         var _assetBundle = AssetBundle.LoadFromFile(path);
@@ -127,14 +127,14 @@
         if (_assetBundle == null)
         {
             Debug.LogErrorFormat("AssetBundleManifest鐨勫寘鏂囦欢涓虹┖鎴栬�呭姞杞藉嚭閿�.  Path:{0}", path);
-            return;
+            return UniTask.CompletedTask;
         }
 
         AssetBundleManifest _assetBundleManifest = _assetBundle.LoadAsset<AssetBundleManifest>(ResourcesPath.AssetDependentFileAssetName);
         if (_assetBundleManifest == null)
         {
             Debug.LogErrorFormat("AssetBundleManifest鐨勫寘鏂囦欢涓虹┖鎴栬�呭姞杞藉嚭閿�.  Path:{0}", path);
-            return;
+            return UniTask.CompletedTask;
         }
 
         string[] _assetBundleNames = _assetBundleManifest.GetAllAssetBundles();
@@ -148,6 +148,7 @@
 
         _assetBundle.Unload(true);
         _assetBundle = null;
+        return UniTask.CompletedTask;
     }
 
     public AssetBundleInfo GetAssetBundleInfo(string assetBundleName)

--
Gitblit v1.8.0