Example #1
0
    //mostra os valores atualizados dos atributos
    private void ShowStatsPoint()
    {
        CalcAtb sts = GameObject.FindGameObjectWithTag("Player").GetComponent <CalcAtb>();

        strV.text = string.Format("{0:0}", sts.GetStats(Stats.Str));
        proV.text = string.Format("{0:0}", sts.GetStats(Stats.Pro));
        agiV.text = string.Format("{0:0}", sts.GetStats(Stats.Agi));
        dexV.text = string.Format("{0:0}", sts.GetStats(Stats.Dex));
        intV.text = string.Format("{0:0}", sts.GetStats(Stats.Int));
        eruV.text = string.Format("{0:0}", sts.GetStats(Stats.Eru));
    }
Example #2
0
 //update das informacoes
 private void Update()
 {
     hpText.text     = string.Format("{0:0}/{1:0} ({2:0}%)", health.CaptureState(), baseStats.GetHp(), health.GetPercentge());
     xpText.text     = string.Format(" {0:0}/{1}", xp._xp, baseStats.GetStats(Stats.LvlUp));
     currentLvL.text = string.Format(" {0:0}", baseStats.CalcLvl());
 }