/// <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(); } }