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); } }
public void AddSkillPoint() { skillPoints++; OnSkillPointsChanged?.Invoke(this, EventArgs.Empty); }