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;

    /// <summary>
    /// (Sender, spawnerRef, X, Y)
    /// </summary>
    public event Action<SlotManager, GridManager, int, int> OnSlotClicked;

    public void OnClick()
    {
        OnSlotClicked?.Invoke(this, spawnerRef, x, y);
    }
}