26 lines
708 B
C#
26 lines
708 B
C#
|
|
using TMPro;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
|
||
|
|
public class BattleCard : CardBase
|
||
|
|
{
|
||
|
|
public Image i_grade, i_card;
|
||
|
|
public TextMeshProUGUI[] texts; // 0 등급, 1 설명
|
||
|
|
|
||
|
|
CardListTableData m_Data;
|
||
|
|
|
||
|
|
public override void Set<T>(T _base)
|
||
|
|
{
|
||
|
|
base.Set(_base);
|
||
|
|
m_Data = _base as CardListTableData;
|
||
|
|
i_grade.sprite = UIAtlasMgr.Ins.Get_CardGrade_Sprite(m_Data.e_CardGrade);
|
||
|
|
texts[0].text = MyText.Get_GradeName(m_Data.e_CardGrade);
|
||
|
|
texts[1].text = m_Data.Get_Desc();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void OnClick_Select()
|
||
|
|
{
|
||
|
|
gameObject.SetActive(false);
|
||
|
|
InGameInfo.Ins.Add_Card(m_Data, SelectCardUI.Ins.isLvUp());
|
||
|
|
SelectCardUI.Ins.Off_or_NextCheck();
|
||
|
|
}
|
||
|
|
}
|