From f1e5df1fc8eadd0eb27e0a6870501fa25a42b5a1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 12 十一月 2025 11:13:53 +0800
Subject: [PATCH] 262 修复切换服务器报错
---
Main/System/HeroUI/HeroCollectionCardCell.cs | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/Main/System/HeroUI/HeroCollectionCardCell.cs b/Main/System/HeroUI/HeroCollectionCardCell.cs
index 178ce11..e403273 100644
--- a/Main/System/HeroUI/HeroCollectionCardCell.cs
+++ b/Main/System/HeroUI/HeroCollectionCardCell.cs
@@ -13,7 +13,7 @@
[SerializeField] Text nameText;
[SerializeField] Image trainStateImg;
[SerializeField] RedpointBehaviour redpoint;
- [SerializeField] Button fullBtn;
+ [SerializeField] Button bookLVBtn;
[SerializeField] GameObject unGetObj;
[SerializeField] GameObject activeObj; // 鍙縺娲诲甫娴佸厜鏁堟灉鏉愯川
@@ -29,7 +29,7 @@
int funcState = HeroUIManager.Instance.GetHeroBookState(heroID, quality);
activeObj.SetActive(funcState == 1);
- fullBtn.SetActive(funcState == 5);
+ bookLVBtn.SetActive(funcState > 1);
unGetObj.SetActive(funcState == 0);
countryImg.SetSprite(HeroUIManager.Instance.GetCountryIconName(heroConfig.Country));
@@ -41,7 +41,7 @@
if (funcState == 3 || funcState == 4)
{
trainStateImg.SetActive(true);
- trainStateImg.SetSprite("herofuncstate2");
+ trainStateImg.SetSprite("herofuncstate4");
}
else
{
@@ -76,9 +76,14 @@
{
UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
}
+ else
+ {
+ HeroUIManager.Instance.selectForPreviewHeroID = heroID;
+ UIManager.Instance.OpenWindow<HeroBestWin>();
+ }
});
- fullBtn.AddListener(() =>
+ bookLVBtn.AddListener(() =>
{
HeroUIManager.Instance.selectCollectHeroID = heroID;
UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
--
Gitblit v1.8.0