public SkillPrefab(XElement element) { name = element.GetAttributeString("name", ""); var levelString = element.GetAttributeString("level", ""); if (levelString.Contains(",")) { levelRange = XMLExtensions.ParseToVector2(levelString, false); } else { float skillLevel = float.Parse(levelString, System.Globalization.CultureInfo.InvariantCulture); levelRange = new Vector2(skillLevel, skillLevel); } }