public void PlaceItem(int id) { Item itemToPlace = CheckForItem(id); if (itemToPlace != null) { itemToPlace.placed = true; inventoryUI.PlaceItem(itemToPlace); Debug.Log("Placed item: " + itemToPlace.type); } }