From 89343a7a0909e5244a3b69c4db1294de4536243b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 18:15:22 +0800
Subject: [PATCH] 262 幻境阁系统-客户端 新增仅适用武将解锁的头像和形象的红点移除规则
---
Main/System/HeroUI/HeroCardLineCell.cs | 42 ++++++++++++++++++++++++++++++++----------
1 files changed, 32 insertions(+), 10 deletions(-)
diff --git a/Main/System/HeroUI/HeroCardLineCell.cs b/Main/System/HeroUI/HeroCardLineCell.cs
index 3b68921..110da08 100644
--- a/Main/System/HeroUI/HeroCardLineCell.cs
+++ b/Main/System/HeroUI/HeroCardLineCell.cs
@@ -1,22 +1,44 @@
锘縰sing UnityEngine;
-using System.Collections.Generic;
public class HeroCardLineCell : CellView
{
- [SerializeField] List<HeroCardCell> cardList;
+ [SerializeField] HeroCardCell[] cardList;
- public void Display(int index)
- {
- for (int i = 0; i < cardList.Count; i++)
+ //鐢熸晥鍜屾湭鐢熸晥鍏辩敤 heroSortList锛宎ctiveCount 鐢熸晥鏁伴噺, index澶т簬10000 鏈敓鏁�
+ public void Display(int index, int activeCount)
+ {
+ if (index < 10000)
{
- if (i + index < HeroManager.Instance.heroSortList.Count)
+ //鐢熸晥
+ for (int i = 0; i < cardList.Length; i++)
{
- cardList[i].SetActive(true);
- cardList[i].Display(index);
+ if (i + index < activeCount)
+ {
+ cardList[i].SetActive(true);
+ cardList[i].Display(index + i);
+ }
+ else
+ {
+ cardList[i].SetActive(false);
+ }
}
- else
+ }
+ else
+ {
+ //鏈敓鏁�
+ index = index - 10000;
+
+ for (int i = 0; i < cardList.Length; i++)
{
- cardList[i].SetActive(false);
+ if (i + index < HeroUIManager.Instance.heroSortList.Count)
+ {
+ cardList[i].SetActive(true);
+ cardList[i].Display(index + i);
+ }
+ else
+ {
+ cardList[i].SetActive(false);
+ }
}
}
}
--
Gitblit v1.8.0