63 lines
2.1 KiB
C#
63 lines
2.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ButlerCostumeCard : CardBase
|
|
{
|
|
public UISprite[] sprites; // 0 코스튬, 1 옵션타입
|
|
public UILabel label_lv, label_name;
|
|
public GameObject[] gos; // 0 선택, 1 장착 버튼, 2 장착 중, 3 추천
|
|
|
|
//PCTableData m_PCTableData;
|
|
int m_Lv;
|
|
|
|
public override void Set<T>(T _base)
|
|
{
|
|
base.Set(_base);
|
|
//m_PCTableData = _base as PCTableData;
|
|
//var sdata = ServerInfo.Ins.m_ServerData;
|
|
//DSUtil.InActivateGameObjects(gos);
|
|
|
|
//sprites[0].spriteName = m_PCTableData.Icon;
|
|
//sprites[1].spriteName = m_PCTableData.Option;
|
|
//m_Lv = sdata.PC.Get_Lv(m_PCTableData.ID);
|
|
//sprites[0].color = m_Lv > 0 ? Color.white : Color.black;
|
|
//if (m_Lv >= m_PCTableData.MaxLv) label_lv.text = "Max";
|
|
//else label_lv.text = m_Lv.ToString();
|
|
//label_name.text = m_PCTableData.Name;
|
|
|
|
//gos[2].SetActive(IsEquipCostume());
|
|
//gos[3].SetActive(m_Lv == 0 && m_PCTableData.Recommend);
|
|
}
|
|
|
|
public bool IsCostumeCard(int _id)
|
|
{
|
|
return false;
|
|
//return _id == m_PCTableData.ID;
|
|
}
|
|
public bool IsEquipCostume()
|
|
{
|
|
return false;
|
|
//var info = ServerInfo.Ins.m_ServerData.Equip.Get_Preset_byPrest(Content_Costume.Ins.m_DeckTabUI.Get_Tab());
|
|
//return info.Equip[eItem.PC] == m_PCTableData.ID;
|
|
}
|
|
//public PCTableData Get_PCData()
|
|
//{ // 코스튬 UI 진입 시 한 번만 호출
|
|
// gos[0].SetActive(true);
|
|
// gos[1].SetActive(m_Lv > 0 && !IsEquipCostume());
|
|
// return m_PCTableData;
|
|
//}
|
|
public void OnClick_SelectCostume()
|
|
{
|
|
//Content_Costume.Ins.Set_Scroll();
|
|
gos[0].SetActive(true);
|
|
gos[1].SetActive(m_Lv > 0 && !IsEquipCostume());
|
|
//Content_Costume.Ins.Set_LeftInfo(m_PCTableData);
|
|
}
|
|
|
|
public void OnClick_EquipCostume()
|
|
{
|
|
//ServerInfo.Ins.m_ServerData.Equip.Set_Equip(Content_Costume.Ins.m_DeckTabUI.Get_Tab(), eItem.PC, 0, m_PCTableData.ID, 0);
|
|
//Content_Costume.Ins.Set_UI();
|
|
}
|
|
} |