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/HeroUI/HeroConnectionHeadCell.cs | 34 ++++++++++++++++++++--------------
1 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/Main/System/HeroUI/HeroConnectionHeadCell.cs b/Main/System/HeroUI/HeroConnectionHeadCell.cs
index 498a80a..178e840 100644
--- a/Main/System/HeroUI/HeroConnectionHeadCell.cs
+++ b/Main/System/HeroUI/HeroConnectionHeadCell.cs
@@ -33,23 +33,29 @@
nameText.text = heroConfig.Name;
qualityImg.SetSprite("heroheadBG" + heroConfig.Quality);
- var sprite = UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon);
- if (sprite == null)
+
+ UILoader.LoadSpriteAsync("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon).ContinueWith(sprite =>
{
- // 鍐呯綉鏈厤缃椂
- heroIcon.SetSprite("herohead_default");
- }
- else
- {
- heroIcon.overrideSprite = sprite;
- }
+ if (this == null || heroIcon == null) return;
+ if (sprite == null)
+ {
+ // 鍐呯綉鏈厤缃椂
+ heroIcon.SetSprite("herohead_default");
+ }
+ else
+ {
+ heroIcon.overrideSprite = sprite;
+ }
- if (showCollect)
- {
- //鏈幏寰楁灏嗚缃伆
- heroIcon.gray = !HeroManager.Instance.HasHero(heroID);
+ if (showCollect)
+ {
+ //鏈幏寰楁灏嗚缃伆
+ heroIcon.gray = !HeroManager.Instance.HasHero(heroID);
- }
+ }
+
+ connMarkImg.SetActive(index != 0);
+ }).Forget();
connMarkImg.SetActive(index != 0);
}
--
Gitblit v1.8.0