Files
project-reset/Assets/Plugins/LiveWatchLite/TowerDefenceDemo/Scripts/Slot/ClickableObject.cs
2025-08-31 18:14:07 -04:00

16 lines
309 B
C#

using System;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Ingvar.LiveWatch.TowerDefenceDemo
{
public class ClickableObject : MonoBehaviour
{
public event Action Clicked;
private void OnMouseDown()
{
Clicked?.Invoke();
}
}
}