18 lines
605 B
C#
18 lines
605 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class PCJobUI_Class : MonoBehaviour
|
|
{
|
|
public Image[] images; // 0 직업 타입
|
|
public TextMeshProUGUI[] texts; // 0 직업명, 1 공격타입, 2 주스탯
|
|
|
|
public void Set(int classid)
|
|
{
|
|
var classData = table_classconfig.Ins.Get_Data_orNull(classid);
|
|
images[0].sprite = UIAtlasMgr.Ins.Get_Sprite(classData.s_JobIcon);
|
|
texts[0].text = classData.Get_JobName();
|
|
texts[1].text = $"공격타입 : {classData.e_BattleType}";
|
|
texts[2].text = $"주 스탯 : {classData.Get_MainStat()}";
|
|
}
|
|
} |