From b0a5d4688f1af73b5ad03ccc2df11c9aac1523a9 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期二, 29 七月 2025 16:56:23 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/System/HeroUI/HeroCardLineCell.cs | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Main/System/HeroUI/HeroCardLineCell.cs b/Main/System/HeroUI/HeroCardLineCell.cs index 7b19201..449b020 100644 --- a/Main/System/HeroUI/HeroCardLineCell.cs +++ b/Main/System/HeroUI/HeroCardLineCell.cs @@ -1,15 +1,14 @@ 锘縰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++) + for (int i = 0; i < cardList.Length; i++) { - if (i + index < HeroManager.Instance.heroSortList.Count) + if (i + index < HeroUIManager.Instance.heroSortList.Count) { cardList[i].SetActive(true); cardList[i].Display(index + i); -- Gitblit v1.8.0