private void BuildSkillDescription(GameObject desc, BaseSkill skill) { // similar to how we do the character/target ui. desc.transform.FindChild("Name").GetComponent <Text> ().text = skill.Information.Name; BuildSkillStatString(desc, "School", skill.School.Information.Name); BuildSkillStatString(desc, "Power", "" + skill.Power); BuildSkillStatString(desc, "Cost", "" + skill.Cost); BuildSkillStatString(desc, "Cooldown", "" + skill.Cooldown); string realm; if (skill.Corporeal) { realm = "Corporeal"; } else { realm = "Ethereal"; } BuildSkillStatString(desc, "Realm", realm); string proximity; if (skill.Ranged) { proximity = "Ranged"; } else { proximity = "Melee"; } BuildSkillStatString(desc, "Proximity", proximity); BuildSkillStatString(desc, "Targets", skill.Targets()); desc.SetActive(false); }