Exemple #1
0
    void StoreItem(Usable ItemUsable)
    {
        if (storedItem)
        {
            storedItem.Used();
        }

        if (OnItemDrop != null)
        {
            OnItemDrop(ItemUsable);
        }

        ItemUsable.launcher = _player;
        ItemUsable.OnUsed  += ReleaseItem;
        storedItem          = ItemUsable;
    }