25 lines
842 B
C#
25 lines
842 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class PCInfoUI_CollectionCard : CardBase
|
|
{
|
|
public PCInfoUI_CollectionCard_Scroll m_Scroll;
|
|
public TextMeshProUGUI[] texts; // 0 이름, 1 능력치
|
|
public GameObject[] gos; // 0 잠금
|
|
|
|
public override void Set<T>(T _base)
|
|
{
|
|
base.Set(_base);
|
|
var data = _base as PCCostumeCollectionListTableData;
|
|
var sdata = ServerInfo.Ins.m_ServerData;
|
|
texts[0].text = table_localtext.Ins.Get_Text(data.n_CollectionName);
|
|
texts[1].text = MyText.Get_StatNameValueText(data.e_Stat, data.n_StatValue);
|
|
gos[0].SetActive(!data.IsCollection(sdata));
|
|
m_Scroll.Set(data.list_CostumeID);
|
|
}
|
|
|
|
public void SelectCard_MyCostume()
|
|
{
|
|
m_Scroll.SelectCard_MyCostume(ServerInfo.Ins.m_ServerData.Get_EqiupmentEquip(eItem.PCCostume));
|
|
}
|
|
} |