public void UpdateItemPrefab(PowerItemRow ui_row, Power row) { int currentLevel; PowerItem playerItem = SaveFile.GetInstance().CoreConfig.player.powerItems.Find(x => x.powerId == row.itemId); if (playerItem == null || row.maxLevel == 0) { currentLevel = 1; } else { currentLevel = playerItem.powerLevel; } ui_row.ChangeTitle(row.itemName, currentLevel); ui_row.ChangeIcon(row.GetItemIcon()); ui_row.ChangePrice(row.cost.ToString()); }