25 lines
983 B
C#
25 lines
983 B
C#
using TMPro;
|
|
using UnityEngine.UI;
|
|
|
|
public class EqiupmentPCInfo : UI3DModel
|
|
{
|
|
public Image[] images; // 0 메인스탯
|
|
public TextMeshProUGUI[] texts; // 0 직업, 1 레벨, 2 이름, 3 메인스탯
|
|
|
|
public void Set()
|
|
{
|
|
var costumeid = ServerInfo.Ins.m_ServerData.Get_EqiupmentEquip(eItem.PCCostume);
|
|
var costumedata = table_costumelist.Ins.Get_Data_orNull(costumeid);
|
|
Set_2DIlust(costumedata);
|
|
Set_3DModel(true, costumedata.s_Prefab, tr => { tr.GetComponent<PCActor>().Set_Obj(); });
|
|
|
|
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 = ServerInfo.Ins.UserName;
|
|
texts[3].text = classData.e_MainStatType.ToString();
|
|
|
|
images[0].sprite = UIAtlasMgr.Ins.Get_MainStatSprite(classData.e_MainStatType);
|
|
}
|
|
} |