From 8f1e4dc19a0664e6a8ee4fdad2065efb5c16d053 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 31 十月 2025 16:08:09 +0800
Subject: [PATCH] 0312 购买物品 拥有数量如果是能自动转换货币的显示货币值否则显示物品数量;物品图标下标显示购买的总数量;强制刷新武将界面的排版

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

diff --git a/Main/ResModule/AssetBundle/AssetBundleUtility.cs b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
index 9b754d1..8f8fae0 100644
--- a/Main/ResModule/AssetBundle/AssetBundleUtility.cs
+++ b/Main/ResModule/AssetBundle/AssetBundleUtility.cs
@@ -99,10 +99,11 @@
 
     public async UniTask Initialize()
     {
+        await UniTask.Delay(200);
         await Co_LoadMainfestFile("audio");
         // await Co_LoadMainfestFile("video");
         await Co_LoadMainfestFile("mobeffectshader");
-        // await Co_LoadMainfestFile("config");
+        await Co_LoadMainfestFile("config");
         await Co_LoadMainfestFile("maps");
         await Co_LoadMainfestFile("ui");
 
@@ -369,7 +370,11 @@
 
     public UnityEngine.Object Sync_LoadAsset(string assetBundleName, string assetName, Type _type = null)
     {
-
+        if (string.IsNullOrEmpty(assetName))
+        {
+            Debug.LogErrorFormat("Sync_LoadAsset(): {0}, 鍑虹幇閿欒 => 瀛樺叆鐨凙ssetName涓簄ull. ", assetName);
+            return null;
+        }
 #if UNITY_5||UNITY_5_3_OR_NEWER
         assetBundleName = assetBundleName.ToLower();
 #endif

--
Gitblit v1.8.0