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