public bool HasItem(GameObject item) { foreach (var slot in itemStorage.GetItemSlotTree()) { if (item == slot.Item?.gameObject) { return(true); } } return(false); }
public bool HasItem(GameObject item) { foreach (var slot in itemStorage.GetItemSlotTree()) { if (item == slot.Item?.gameObject) { return(true); } } return(false); }