32 lines
991 B
C#
32 lines
991 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class CollectionEMCardBase : CardBase
|
|
{
|
|
public Image[] images; // 0 아이콘
|
|
public TextMeshProUGUI[] texts; // 0 이름, 1 보유효과, 2 보유/필요. 3 보유효과 값
|
|
public Slider slider_proc;
|
|
public GameObject go_getreward, go_selected;
|
|
|
|
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();
|
|
|
|
Set_Selected(false);
|
|
}
|
|
|
|
public override TableDataBase Get_Data() { return m_Data; }
|
|
public override void Set_Selected(bool active) { go_selected.SetActive(active); }
|
|
|
|
public virtual void OnClick_Card() { }
|
|
public virtual void OnClick_GetReward() { }
|
|
}
|