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(); }
public void SetNewBaseRegeneration() { baseHpRegenRateWithStats = baseHpRegenerationRate + playerStats.GetVitality() * hpRegenPerVitalityPoint; baseManaRegenRateWithStats = baseManaRegenerationRate + playerStats.GetEnergy() * manaRegenPerEnergyPoint; }