26 lines
723 B
C#
26 lines
723 B
C#
using TMPro;
|
|
using UnityEngine.UI;
|
|
|
|
public class WorldMapDungeonCard : CardBase
|
|
{
|
|
public Image[] images; // 0 던전 아이콘
|
|
public TextMeshProUGUI[] texts; // 0 던전이름, 1 던전 설명
|
|
|
|
int m_DungeonMapID;
|
|
|
|
public override void Set<T>(T _base)
|
|
{
|
|
base.Set(_base);
|
|
m_DungeonMapID = (int)DSUtil.StringToEnum<eDungeon>(_base.ToString()) + 1000;
|
|
var Tdata = table_battlemapconfig.Ins.Get_Data(m_DungeonMapID);
|
|
texts[0].text = Tdata.Get_Name();
|
|
texts[1].text = Tdata.Get_Desc();
|
|
}
|
|
|
|
public override int Get_IntData() { return m_DungeonMapID; }
|
|
|
|
public void OnClick_Card()
|
|
{
|
|
MapChoiceUI_Dungeon.Ins.Select_Dungeon(m_DungeonMapID);
|
|
}
|
|
} |