Ejemplo n.º 1
0
 public void Unlock(PlayerCharacter playerCharacter)
 {
     Learnt = true;
     if (UpgradeType == SkillUpgradeType.SkillPoints)
     {
         playerCharacter.AddSkillPoints(-SkillPointsToLevel);
     }
 }
Ejemplo n.º 2
0
        public void Upgrade(PlayerCharacter playerCharacter)
        {
            if (UpgradeType == SkillUpgradeType.SkillPoints)
            {
                playerCharacter.AddSkillPoints(-SkillPointsToLevel);
            }

            CurrentRank++;
            if (CurrentRank > MaxRank)
            {
                CurrentRank = MaxRank;
            }
        }