30 lines
956 B
C#
30 lines
956 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class WorldMapDungeonCard : CardBase
|
|
{
|
|
public Image[] images; // 0 던전 아이콘
|
|
public TextMeshProUGUI[] texts_on, texts_off; // 0 던전이름, 1 던전 설명
|
|
public GameObject[] gos_onoff; // 0 off, 1 on
|
|
|
|
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_on[0].text = texts_off[0].text = Tdata.Get_Name();
|
|
texts_on[1].text = texts_off[1].text = Tdata.Get_Desc();
|
|
DSUtil.InActivateGameObjects(gos_onoff, 0);
|
|
}
|
|
|
|
public override int Get_IntData() { return m_DungeonMapID; }
|
|
|
|
public void OnClick_Card()
|
|
{
|
|
MapChoiceUI_Dungeon.Ins.Select_Dungeon(m_DungeonMapID);
|
|
DSUtil.InActivateGameObjects(gos_onoff, 1);
|
|
}
|
|
} |