From bd6f9a734277e57efe5abc8c32a85d5de27cdc03 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 14 三月 2026 00:18:49 +0800
Subject: [PATCH] 555 子 【付费功能】皮肤商店 / 【付费功能】时装商店-客户端
---
Main/System/HeroUI/HeroTrainWin.cs | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index 0efe6d3..f6202e6 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -105,9 +105,8 @@
[SerializeField] HeroLVBreakCell heroLVBreakCell; //瀵瑰簲鍩瑰吇鐨� allAttrScroll 鍜� attrBtn
- //鍏ュ彛浼孩鐐圭敤鍥剧墖浠f浛
- [SerializeField] Image trainMainRedImg;
- [SerializeField] Image breakMainRedImg;
+ bool isTrainMainRed;
+ bool isBreakMainRed;
#endregion
@@ -297,6 +296,8 @@
RefreshAwake();
RefreshFreeze();
RefreshRedImg();
+ HeroUIManager.Instance.UpdateTheHeroCardRedpoint(isTrainMainRed, isBreakMainRed,
+ HeroUIManager.Instance.HeroAllSkinStateForRedpoint(hero.heroId) > 0);
DisplayTrainOrBreak(hero);
ShowDeleteTip();
@@ -886,8 +887,8 @@
redpointAwake.SetActive(false);
redpointGift.SetActive(false);
redpointLVUP.SetActive(false);
- trainMainRedImg.SetActive(false);
- breakMainRedImg.SetActive(false);
+ isTrainMainRed = false;
+ isBreakMainRed = false;
redpointBreakLVUP.SetActive(false);
@@ -898,7 +899,7 @@
if (heroCnt > 1 && hero.heroStar < hero.GetCurMaxStar())
{
redpointGift.SetActive(true);
- trainMainRedImg.SetActive(true);
+ isTrainMainRed = true;
}
@@ -909,7 +910,7 @@
if (itemPack.GetCountById(lvupConfig.UPCostItem[0]) >= lvupConfig.UPCostItem[1])
{
redpointLVUP.SetActive(true);
- trainMainRedImg.SetActive(true);
+ isTrainMainRed = true;
}
}
@@ -931,7 +932,7 @@
if (itemPack.GetCountById(config.UPCostItem[0]) >= config.UPCostItem[1])
{
redpointAwake.SetActive(true);
- trainMainRedImg.SetActive(true);
+ isTrainMainRed = true;
}
}
}
@@ -939,7 +940,7 @@
if (HeroUIManager.Instance.IsCanBreak(hero))
{
redpointBreakLVUP.SetActive(true);
- breakMainRedImg.SetActive(true);
+ isBreakMainRed = true;
}
}
--
Gitblit v1.8.0