Actual cleanup
This commit is contained in:
parent
73a9231845
commit
d74647054a
@ -1,25 +0,0 @@
|
|||||||
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)
|
|
||||||
{
|
|
||||||
//GameObject selectedObject = EventSystem.current.currentSelectedGameObject;
|
|
||||||
//Debug.Log("DeselectedAction called on: " + selectedObject?.name);
|
|
||||||
//if (selectedObject != null && selectedObject.transform.IsChildOf(_allyUpgrade.transform))
|
|
||||||
//{
|
|
||||||
// return;
|
|
||||||
//}
|
|
||||||
//Debug.Log("Called to deselect");
|
|
||||||
//Destroy(_allyUpgrade);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d1349fced40ce3242ab17aa6328d25b8
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Loading…
x
Reference in New Issue
Block a user