public void AddItem(ItemObject newItem) { if (inventory.AddItem(newItem)) { uIManager.AddItem(newItem); onItemCollected.Invoke(newItem); } }