private void ProcessSlotComponents(InventoryComponent inventoryComponent, Action <ISlotRootComponent> action) { var slotRootComponents = inventoryComponent.GetSlots(); foreach (var slotRootComponent in slotRootComponents) { action.Invoke(slotRootComponent); } }