Пример #1
0
 public bool TryUnlockSkill(SkillType skillType)
 {
     if (CanUnlock(skillType))
     {
         if (skillPoints > 0)
         {
             skillPoints--;
             OnSkillPointsChanged?.Invoke(this, EventArgs.Empty);
             UnlockSkill(skillType);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public void AddSkillPoint()
 {
     skillPoints++;
     OnSkillPointsChanged?.Invoke(this, EventArgs.Empty);
 }