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

30 lines
624 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class TowerPlacementManager : MonoBehaviour
{
/// <summary>
/// Sender
/// </summary>
public static event Action<TowerPlacementManager> OnSpawnGridRequested;
public static TowerPlacementManager Singleton;
private void Start()
{
if (Singleton != this)
Destroy(Singleton);
Singleton = this;
OnSpawnGridRequested?.Invoke(this);
}
public void OnSlotClicked(SlotManager slot, GridManager grid, int x, int y)
{
}
}