Ejemplo n.º 1
0
 private void behaviours(Player_Inventory.Item item)
 {
     //Remove Item
     if (item.destroyOnUse)
     {
         inv.RemoveItemFromInventory(item);
     }
     //Set activation
     if (oneTimeActivation)
     {
         used = true;
     }
 }
    private void Behaviors()
    {
        //Remove Items
        foreach (var key in keysToRemove)
        {
            inv.RemoveItemFromInventory(key);
            keysToRemove = new List <Player_Inventory.Item>();
        }

        //Set activation
        if (oneTimeActivation)
        {
            used = true;
        }
    }