From cb653cf75b17b9bdca0b5b9e6b88edf1ca72e90c Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 17 十月 2025 09:54:11 +0800
Subject: [PATCH] 0312 删除旧的日常代码3
---
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