void PrintSkillInfo(Talent skill) { string t = ""; t += "Name:" + skill.TalentNodename + "\n\n"; t += "Description: " + skill.GetDescription() + "\n\n"; if (currActor.JobDataState.SkillLearned(currentJob.GetKey(), skill.GetKey())) { t += "Already leanred!"; } else { t += "Cost to learn: " + skill.skillCost; LearnSkillButton.button.onClick.RemoveAllListeners(); LearnSkillButton.button.onClick.AddListener(delegate { LearnButton(skill); }); } skillInfo.text = t; }