2025-01-22 06:03:38 +00:00
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class WorldMapDungeonCard : CardBase
|
|
|
|
|
{
|
|
|
|
|
public Image[] images; // 0 던전 아이콘
|
|
|
|
|
public TextMeshProUGUI[] texts; // 0 던전이름, 1 던전 설명
|
|
|
|
|
|
|
|
|
|
eDungeon m_Dungeon;
|
2025-01-22 07:20:20 +00:00
|
|
|
int m_DungeonMapID;
|
2025-01-22 06:03:38 +00:00
|
|
|
|
|
|
|
|
public override void Set<T>(T _base)
|
|
|
|
|
{
|
|
|
|
|
base.Set(_base);
|
|
|
|
|
m_Dungeon = DSUtil.StringToEnum<eDungeon>(_base.ToString());
|
2025-01-22 07:20:20 +00:00
|
|
|
m_DungeonMapID = (int)m_Dungeon + 1001;
|
|
|
|
|
var Tdata = table_battlemapconfig.Ins.Get_Data(m_DungeonMapID);
|
|
|
|
|
texts[0].text = Tdata.Get_Name();
|
|
|
|
|
texts[1].text = Tdata.Get_Desc();
|
2025-01-22 06:03:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnClick_Card()
|
|
|
|
|
{
|
2025-01-22 07:20:20 +00:00
|
|
|
MapChoiceUI_Dungeon.Ins.Select_Dungeon(m_Dungeon, m_DungeonMapID);
|
2025-01-22 06:03:38 +00:00
|
|
|
}
|
|
|
|
|
}
|