2024-12-15 01:39:39 +00:00
|
|
|
using TMPro;
|
2025-03-13 00:10:58 +00:00
|
|
|
using UnityEngine;
|
2024-12-15 01:39:39 +00:00
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
2025-03-13 00:10:58 +00:00
|
|
|
public class PCUI_LvInfo : MonoBehaviour
|
2024-12-15 01:39:39 +00:00
|
|
|
{
|
|
|
|
|
public Image[] images; // 0 직업
|
2025-02-14 01:57:06 +00:00
|
|
|
public TextMeshProUGUI[] texts; // 0 직업, 1 레벨, 2 경험치, 3 무기종류
|
2024-12-15 01:39:39 +00:00
|
|
|
|
|
|
|
|
private void OnEnable()
|
|
|
|
|
{
|
|
|
|
|
Set();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Set()
|
|
|
|
|
{
|
|
|
|
|
var sdata = ServerInfo.Ins.m_ServerData;
|
|
|
|
|
var classData = table_classconfig.Ins.Get_Data_orNull(sdata.Get_EqiupmentEquip(eItem.PC));
|
|
|
|
|
texts[0].text = classData.Get_JobName();
|
2025-02-14 01:57:06 +00:00
|
|
|
texts[1].text = $"Lv. <size=35>{sdata.PC.Lv}";
|
2024-12-15 01:39:39 +00:00
|
|
|
texts[2].text = $"Exp {DSUtil.GetCommaText_N2(sdata.PC.Get_ExpSliderValue() * 100f)}%";
|
2025-02-15 00:45:35 +00:00
|
|
|
if (texts.Length > 3) texts[3].text = classData.e_BattleType.ToString();
|
2024-12-15 01:39:39 +00:00
|
|
|
}
|
|
|
|
|
}
|