using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class TrashSlot : MonoBehaviour, IDropHandler, IPointerEnterHandler, IPointerExitHandler { public GameObject trashAlertUI; private Text textToModify; public Sprite trash_closed; public Sprite trash_opened; private Image imageComponent; Button YesBTN, NoBTN; GameObject draggedItem { get { return DragDrop.itemBeingDragged; } } GameObject itemToBeDeleted; public string itemName { get { string name = itemToBeDeleted.name; string toRemove = "(Clone)"; string result = name.Replace(toRemove, ""); return result; } } void Start() { imageComponent = transform.Find("background").GetComponent(); textToModify = trashAlertUI.transform.Find("Text").GetComponent(); YesBTN = trashAlertUI.transform.Find("yes").GetComponent