25 lines
728 B
C#
25 lines
728 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class PCUI_LvInfo : MonoBehaviourSingletonTemplate<PCUI_LvInfo>
|
|
{
|
|
public Image[] images; // 0 직업
|
|
public TextMeshProUGUI[] texts; // 0 직업, 1 레벨, 2 경험치
|
|
|
|
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.{sdata.PC.Lv}";
|
|
texts[2].text = $"Exp {DSUtil.GetCommaText_N2(sdata.PC.Get_ExpSliderValue() * 100f)}%";
|
|
}
|
|
} |