From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)

---
 Main/System/PhantasmPavilion/PhantasmPavilionModelItem.cs |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/Main/System/PhantasmPavilion/PhantasmPavilionModelItem.cs b/Main/System/PhantasmPavilion/PhantasmPavilionModelItem.cs
index 76c099f..12241f2 100644
--- a/Main/System/PhantasmPavilion/PhantasmPavilionModelItem.cs
+++ b/Main/System/PhantasmPavilion/PhantasmPavilionModelItem.cs
@@ -43,16 +43,7 @@
         if (!HeroSkinConfig.HasKey(skinID))
             return;
         HeroSkinConfig skinConfig = HeroSkinConfig.Get(skinID);
-        var sprite = UILoader.LoadSprite("HeroHead", skinConfig.SquareIcon);
-        if (sprite == null)
-        {
-            // 鍐呯綉鏈厤缃椂
-            imgFace.SetSprite("herohead_default");
-        }
-        else
-        {
-            imgFace.overrideSprite = sprite;
-        }
+        UILoader.LoadSprite("HeroHead", skinConfig.SquareIcon, imgFace, "herohead_default").Forget();
 
         int resourceType = manager.GetResourceType(type, id);
         string resourceValue = manager.GetResourceValue(type, id);

--
Gitblit v1.8.0