//********************************************************// // // // Copyright © All rights reserved. MyNameIsVoo. 2020. // // // // COPYING FORBIDEN // // // //********************************************************// using UnityEngine; using UnityEngine.EventSystems; using ICWM.IconSystem; namespace ICWM { namespace DragAndDrop { public class AreaDropSlot : MonoBehaviour, IDropHandler { public void OnDrop(PointerEventData eventData) { DragHandler.isDeleteIcon = true; DragHandler.itemIcon.GetComponent().deleteVSP = true; InventoryBase.instance.DropItem(DragHandler.itemIcon, DragHandler.itemIcon.GetComponentInChildren().CL, false); GetComponent().Button.SetActive(false); } } } }