gather-and-defend/Assets/Scripts/Ally/UpgradeBackgroundInteraction.cs
2025-02-02 13:32:07 -05:00

19 lines
409 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class UpgradeBackgroundInteraction : MonoBehaviour, IPointerClickHandler
{
[SerializeField]
private GameObject _upgradeUI;
public void OnPointerClick(PointerEventData eventData)
{
if (_upgradeUI != null)
{
Destroy(_upgradeUI);
}
}
}