27 lines
707 B
C#
27 lines
707 B
C#
|
|
using TMPro;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
|
||
|
|
public class PCJobCard : CardBase
|
||
|
|
{
|
||
|
|
public Image[] images; // 0 직업
|
||
|
|
public TextMeshProUGUI[] texts; // 0 직업명
|
||
|
|
public GameObject[] gos; // 0 선택중
|
||
|
|
|
||
|
|
ClassOpenConditionTableData m_Data;
|
||
|
|
|
||
|
|
public override void Set<T>(T _base)
|
||
|
|
{
|
||
|
|
base.Set(_base);
|
||
|
|
m_Data = _base as ClassOpenConditionTableData;
|
||
|
|
|
||
|
|
images[0].sprite = UIAtlasMgr.Ins.Get_Sprite(m_Data.n_ClassID);
|
||
|
|
texts[0].text = m_Data.Get_Name();
|
||
|
|
gos[0].SetActive(ServerInfo.Ins.m_ServerData.Get_EqiupmentEquip(eItem.PC) == m_Data.n_ClassID);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void OnClick_Job()
|
||
|
|
{
|
||
|
|
PCJobUI.Ins.Set(m_Data.n_ClassID);
|
||
|
|
}
|
||
|
|
}
|