Пример #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
    private void SetRecastInterval()
    {
        float recastIntervalMultiplier = 1f;

        if (attackType != AttackType.Melee)
        {
            recastIntervalMultiplier = GetRecastIntervalTimeMultiplier(stats.GetDexterity());
        }

        recastInterval = recastIntervalMultiplier * weapon.recastInterval;
    }