Ejemplo n.º 1
0
    // 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);
    }
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
0
    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();
    }
Ejemplo n.º 4
0
    // 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();
    }
Ejemplo n.º 5
0
    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();
    }