public bool RemoveItem(ItemBase item) { InventorySlot slotToKill; itemPossesion.TryGetValue(item, out slotToKill); if (slotToKill != null) { ItemBase killed = slotToKill.Item; slotToKill.Item = null; itemPossesion.Remove(killed); killed.DestroyItem(); return(true); } return(false); }