Exemple #1
0
    public void DropItem()
    {
        //Drop the active item and check the item count in the slots again
        //if the item count is less than 0, rearrange the slots
        RemoveItem(activeItem);


        activeItem.DropItem(this.transform.position, gameObject.GetComponentInChildren <Character>());
        activeItem.transform.parent = null;
        activeItem = null;
    }