using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using TMPro;
using Northbound.Data;
namespace Northbound
{
///
/// 개별 건물 슬롯 버튼
///
[RequireComponent(typeof(EventTrigger))]
public class BuildingSlotButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
[Header("UI References")]
[SerializeField] private Image iconImage;
[SerializeField] private TextMeshProUGUI nameText;
[SerializeField] private TextMeshProUGUI hotkeyText;
[SerializeField] private TextMeshProUGUI costText;
[SerializeField] private Image backgroundImage;
[SerializeField] private Button button;
[Header("Visual Settings")]
[SerializeField] private Color normalColor = new Color(0.2f, 0.2f, 0.2f, 0.8f);
[SerializeField] private Color selectedColor = new Color(0.3f, 0.6f, 0.3f, 1f);
[SerializeField] private Color hoverColor = new Color(0.3f, 0.3f, 0.3f, 1f);
private TowerData buildingData;
private int slotIndex;
private BuildingQuickslotUI quickslotUI;
private bool isSelected = false;
private void Awake()
{
if (button == null)
button = GetComponent