From ffd55c202987fb7122e6ce19b5e6f738e33fdf01 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 20 十一月 2025 15:29:10 +0800
Subject: [PATCH] 125 战斗 技能施法容错
---
Main/System/HeroUI/HeroCardLineCell.cs | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Main/System/HeroUI/HeroCardLineCell.cs b/Main/System/HeroUI/HeroCardLineCell.cs
index 3b68921..449b020 100644
--- a/Main/System/HeroUI/HeroCardLineCell.cs
+++ b/Main/System/HeroUI/HeroCardLineCell.cs
@@ -1,18 +1,17 @@
锘縰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);
+ cardList[i].Display(index + i);
}
else
{
--
Gitblit v1.8.0