2024-12-15 01:39:39 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class HelpUI_MemoryWitchCard : CardBase
|
|
|
|
|
{
|
|
|
|
|
public UILabel[] labels; // 0 목표, 1 칭호, 2 공격력, 3 체력
|
|
|
|
|
public GameObject go_clear;
|
|
|
|
|
|
|
|
|
|
public override void Set<T>(T _base)
|
|
|
|
|
{
|
|
|
|
|
base.Set(_base);
|
|
|
|
|
|
|
|
|
|
var Tdata = _base as MemoryWitchTableData;
|
|
|
|
|
|
2024-12-22 01:07:25 +00:00
|
|
|
//labels[0].text = Tdata.ID == 0 ? "없음" : table_itemlist.Ins.Get_Data(Tdata.ID).Get_Name();
|
2024-12-15 01:39:39 +00:00
|
|
|
var title = table_title.Ins.Get_Data(Tdata.TitleID);
|
|
|
|
|
labels[1].text = DSUtil.Format("{0}{1}", MyValue.Get_GradeColor((int)title.Grade), title.Name);
|
|
|
|
|
labels[2].text = DSUtil.Format("{0}%", Tdata.Attack * 100f);
|
|
|
|
|
labels[3].text = DSUtil.Format("{0}%", Tdata.HP * 100f);
|
|
|
|
|
var stitle = ServerInfo.Ins.m_ServerData.Title.Find(f => f[0] == title.ID);
|
|
|
|
|
go_clear.SetActive(stitle[1] > 0);
|
|
|
|
|
}
|
|
|
|
|
}
|