So I want to update the slots dynamically depending on the type of bad the player carries. I tried the below method but failed. Basically I want to update the slots in “Update” instead of “Awake”
private void Update()
{
playerInventory = Inventory.GetPlayerInventory();
playerInventory.inventoryUpdated += Redraw;
}