Beispiel #1
0
    public virtual void OnDrop(PointerEventData pointer)
    {
        ItemIn com = pointer.pointerDrag.GetComponent <ItemIn>();

        if (com != null && com.selfItem.item != null)
        {
            window.Move(GetComponent <ItemIn>().selfItem, pointer.pointerDrag.GetComponent <ItemIn>().selfItem);
            window.SetSelectedItem(this.selfItem);
        }
    }