31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
|
//********************************************************//
|
|||
|
// //
|
|||
|
// 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<DragHandler>().deleteVSP = true;
|
|||
|
|
|||
|
InventoryBase.instance.DropItem(DragHandler.itemIcon, DragHandler.itemIcon.GetComponentInChildren<ButtonOptions>().CL, false);
|
|||
|
|
|||
|
GetComponent<PointEnterDropArea>().Button.SetActive(false);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|