16 lines
468 B
C#
16 lines
468 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
public class CardList : ListView<CardCell>
|
|||
|
|
{
|
|||
|
|
public string IDPrefix;
|
|||
|
|
|
|||
|
|
public override int Count => GameConfig.Instance.BlockMaxLevel;
|
|||
|
|
|
|||
|
|
protected override void ConfigCell(CardCell pCell)
|
|||
|
|
{
|
|||
|
|
DataUnit tData = TableUnit.Instance.GetData(Utils.GetUnitID(IDPrefix, pCell.Index + 1));
|
|||
|
|
pCell.ConfigCell(tData, !PlayerData.Instance.HasCard(tData.UnitID));
|
|||
|
|
}
|
|||
|
|
}
|