Пример #1
0
    private void UpdateStatsTexts()
    {
        statsTexts[0].text = playerStats.GetVitality().ToString();
        statsTexts[1].text = playerStats.GetStrength().ToString();
        statsTexts[2].text = playerStats.GetDexterity().ToString();
        statsTexts[3].text = playerStats.GetEnergy().ToString();

        availablePointsText.text = playerStats.GetAvailableStatsPoints().ToString();
        UpdateStatsButtons();
    }
Пример #2
0
 public void SetNewBaseRegeneration()
 {
     baseHpRegenRateWithStats   = baseHpRegenerationRate + playerStats.GetVitality() * hpRegenPerVitalityPoint;
     baseManaRegenRateWithStats = baseManaRegenerationRate + playerStats.GetEnergy() * manaRegenPerEnergyPoint;
 }