2025-03-16 01:25:55 +00:00
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class CollectionEMCardBase : CardBase
|
|
|
|
|
{
|
2025-07-23 06:26:02 +00:00
|
|
|
public Image[] images; // 0 아이콘, 1 bg
|
2025-03-16 01:25:55 +00:00
|
|
|
public TextMeshProUGUI[] texts; // 0 이름, 1 보유효과, 2 보유/필요. 3 보유효과 값
|
|
|
|
|
public Slider slider_proc;
|
2025-07-23 06:26:02 +00:00
|
|
|
public GameObject go_getreward;
|
2025-03-16 01:25:55 +00:00
|
|
|
|
|
|
|
|
protected CollectionListTableData m_Data;
|
|
|
|
|
|
|
|
|
|
public override void Set<T>(T _base)
|
|
|
|
|
{
|
|
|
|
|
base.Set(_base);
|
|
|
|
|
m_Data = _base as CollectionListTableData;
|
|
|
|
|
var sdata = ServerInfo.Ins.m_ServerData;
|
|
|
|
|
|
|
|
|
|
texts[1].text = MyText.Get_eAwakenUpgradeOptionTypeName(m_Data.n_RepeatRewardValue);
|
|
|
|
|
texts[3].text = m_Data.n_RepeatRewardCount.ToString();
|
2025-03-16 02:20:46 +00:00
|
|
|
|
|
|
|
|
Set_Selected(false);
|
2025-03-16 01:25:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override TableDataBase Get_Data() { return m_Data; }
|
2025-07-23 06:26:02 +00:00
|
|
|
public override void Set_Selected(bool active) { images[1].sprite = UIAtlasMgr.Ins.Get_Sprite(active ? "slot 2" : "slot 1"); }
|
2025-03-16 01:25:55 +00:00
|
|
|
|
|
|
|
|
public virtual void OnClick_Card() { }
|
|
|
|
|
public virtual void OnClick_GetReward() { }
|
|
|
|
|
}
|