using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class SlotManager : MonoBehaviour { public GridManager spawnerRef; public int x; public int y; public Transform TowerSpawnPoint; /// /// (Sender, spawnerRef, X, Y) /// public event Action OnSlotClicked; public event Action OnSlotHovered; public event Action OnSlotUnHovered; public void OnClick() { OnSlotClicked?.Invoke(this, spawnerRef, x, y); } public void OnHovered() { OnSlotHovered?.Invoke(this, spawnerRef, x, y); } public void OnUnHovered() { OnSlotUnHovered?.Invoke(this, spawnerRef, x, y); } }