19 lines
446 B
C#
19 lines
446 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class DeselectedAction : MonoBehaviour, IDeselectHandler
|
|
{
|
|
private GameObject _allyUpgrade;
|
|
public void Init(GameObject allyUpgrade)
|
|
{
|
|
_allyUpgrade = allyUpgrade;
|
|
}
|
|
|
|
public void OnDeselect(BaseEventData eventData)
|
|
{
|
|
Debug.Log("Called to deselect");
|
|
Destroy(_allyUpgrade);
|
|
}
|
|
} |