24 lines
745 B
C#
24 lines
745 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class PCUI_LvInfo : MonoBehaviour
|
|
{
|
|
public Image[] images; // 0 직업
|
|
public TextMeshProUGUI[] texts; // 0 직업, 1 레벨, 2 경험치, 3 무기종류
|
|
|
|
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();
|
|
texts[1].text = $"Lv. <size=35>{sdata.PC.Lv}";
|
|
texts[2].text = $"Exp {DSUtil.GetCommaText_N2(sdata.PC.Get_ExpSliderValue() * 100f)}%";
|
|
if (texts.Length > 3) texts[3].text = classData.e_BattleType.ToString();
|
|
}
|
|
} |