public void updateItemIndex() { for (int i = 0; i < ItemsInInventory.Count; i++) { ItemsInInventory[i].indexItemInList = i; } }