// Use this for initialization void Start() { stat = StatsManager.instance.GetStats(statName); itemNameText.text = itemName; buyText.text = pricesLevel[stat.level].ToString(); itemLevelBar.value = stat.level; buyButton.onClick.AddListener(BuyUpgrade); }
public void UpdateItemDisplay() { _Stat = StatsManager.Instance.GetStats(StatName); ItemLevelBar.value = _Stat.Level; if (_Stat.Level == PricesLevel.Length) { BuyText.text = "MAX"; return; } BuyText.text = PricesLevel[_Stat.Level].ToString(); CheckForUpgradeStatus(); }
public void UpdateItemDisplay() { stat = StatsManager.instance.GetStats(statName); itemLevelBar.value = stat.level; if (stat.level == pricesLevel.Length) { buyText.text = "MAX"; return; } buyText.text = pricesLevel[stat.level].ToString(); CheckForUpgradeStatus(); }
// Use this for initialization void Start() { stat = StatsManager.instance.GetStats(statName); itemNameText.text = itemName; if (stat.level == pricesLevel.Length) { buyText.text = "MAX"; } else { buyText.text = pricesLevel[stat.level].ToString(); } itemLevelBar.value = stat.level; buyButton.onClick.AddListener(BuyUpgrade); UpdateItemDisplay(); }
void Start() { _Stat = StatsManager.Instance.GetStats(StatName); ItemNameText.text = ItemName; if (_Stat.Level == PricesLevel.Length) { BuyText.text = "MAX"; } else { BuyText.text = PricesLevel[_Stat.Level].ToString(); } ItemLevelBar.value = _Stat.Level; BuyButton.onClick.AddListener(BuyUpgrade); UpdateItemDisplay(); }