Ejemplo n.º 1
0
 /// <summary>
 /// Learn skill with given id
 /// </summary>
 /// <param name="id"></param>
 void LearnSkill(int id)
 {
     if (_skills.GetSkillInfo(id).cost <= _skillPoints)
     {
         _skillPoints -= _skills.Learn(id);
         UIChanged();
     }
 }