3DTD/Assets/Scripts/PlacementSystem/SlotManager.cs

22 lines
452 B
C#
Raw Normal View History

2024-04-20 01:51:12 +02:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SlotManager : MonoBehaviour
{
public GridManager spawnerRef;
public int x;
public int y;
/// <summary>
/// (Sender, spawnerRef, X, Y)
/// </summary>
2024-04-20 15:38:21 +02:00
public event Action<SlotManager, GridManager, int, int> OnSlotClicked;
public void OnClick()
{
OnSlotClicked?.Invoke(this, spawnerRef, x, y);
}
2024-04-20 01:51:12 +02:00
}