2024-12-15 01:39:39 +00:00
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
2024-12-30 05:00:34 +00:00
|
|
|
public class PCInfoUI_Center : UI3DModel
|
2024-12-15 01:39:39 +00:00
|
|
|
{
|
|
|
|
|
public TextMeshProUGUI[] texts; // 0 코스튬 이름, 1 코스튬 대사
|
2024-12-30 04:08:50 +00:00
|
|
|
public RawImage RawImage_costume;
|
2024-12-15 01:39:39 +00:00
|
|
|
|
2024-12-30 04:08:50 +00:00
|
|
|
public void Set(int costumeid)
|
2024-12-15 01:39:39 +00:00
|
|
|
{
|
2024-12-30 04:08:50 +00:00
|
|
|
var costumeData = table_costumelist.Ins.Get_Data_orNull(costumeid);
|
|
|
|
|
RawImage_costume.enabled = false;
|
|
|
|
|
if (!DSUtil.CheckNull(costumeData))
|
|
|
|
|
{
|
|
|
|
|
AddrResourceMgr.Ins.LoadObject<Texture>($"Assets/Res_Addr/PCCostumeImage/{costumeData.s_Image}.png", handle =>
|
|
|
|
|
{
|
|
|
|
|
RawImage_costume.enabled = true;
|
|
|
|
|
RawImage_costume.texture = handle.Result;
|
|
|
|
|
Resources.UnloadUnusedAssets();
|
|
|
|
|
});
|
2024-12-30 05:00:34 +00:00
|
|
|
|
|
|
|
|
Set_3DModel($"Assets/Res_Addr/PC/{costumeData.s_Prefab}.prefab");
|
2024-12-30 04:08:50 +00:00
|
|
|
}
|
2024-12-15 01:39:39 +00:00
|
|
|
}
|
|
|
|
|
}
|