private void SetupUpgradeButtons(List <UpgradesMenuUpgradeBtn> currentUpgradeButtons) { for (int i = 0; i < currentUpgradeButtons.Count; i++) { if (item.GetCurrentItemLevel() < i + 2) { currentUpgradeButtons[i].gameObject.SetActive(true); int price = shopMenu.GetTotalUpgradePrice(item.GetCurrentItemLevel(), item.GetItemMaxLevel(), i + 2); currentUpgradeButtons[i].SetupButton(price, i + 2); } else { currentUpgradeButtons[i].gameObject.SetActive(false); } } }