From 5a4e34c8a85737c0fa5b5775122da31155cbaef3 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 09 二月 2026 14:46:01 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 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