26 lines
867 B
C#
26 lines
867 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class PCUI_LvInfo : MonoBehaviour
|
|
{
|
|
public Image[] images; // 0 전투타입, 1 직업
|
|
public TextMeshProUGUI[] texts; // 0 null, 1 레벨, 2 경험치, 3 무기종류
|
|
public Slider slider_exp;
|
|
|
|
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 = MyText.Get_PercentValueText_100(sdata.PC.Get_ExpSliderValue());
|
|
if (texts.Length > 3) texts[3].text = classData.e_BattleType.ToString();
|
|
if (!DSUtil.CheckNull(slider_exp)) slider_exp.value = sdata.PC.Get_ExpSliderValue();
|
|
}
|
|
} |