/// <summary>Finds the given item name in the inventory</summary> public KeyValuePair <CardObject, int> GetItem(string item) { try { return(_items.SingleOrDefault(x => x.Key.name == item)); } catch (InvalidOperationException) { Debug.LogWarning("More than one item with the name " + item + " exists in the inventory."); } return(default);