using System.Collections; using System.Collections.Generic; using UnityEngine; public class EquipmentInfoPopup : BackKeyAdd { public EquipmentInfoUI m_EquipmentInfoUI; public CountChoiceUI m_CountChoiceUI; public GameObject[] gos; // 0 장비 초월, 1 마법 개화 UIItemCard m_ItemCard; protected override void Awake() { base.Awake(); m_CountChoiceUI.Set(Set_UI); } public void Set(UIItemCard _card) { base.Set(); m_ItemCard = _card; Set_UI(); DSUtil.InActivateGameObjects(gos, m_ItemCard.Get_ItemData().ItemType == eItem.Skill ? 1 : 0); } public void Set_UI() { m_EquipmentInfoUI.Set(m_ItemCard, m_CountChoiceUI.Get_Count()); } public void OnClick_Select_Previous() { Set(Content_Equipment.Ins.m_Equipment_Right.Get_PreNextCard_orNull(false, true, m_ItemCard.Get_ItemData().Get_ID())); } public void OnClick_Select_Next() { Set(Content_Equipment.Ins.m_Equipment_Right.Get_PreNextCard_orNull(false, false, m_ItemCard.Get_ItemData().Get_ID())); } }