private void ParseLessonsData() { XmlDocument xmlDoc = new XmlDocument(); #if UNITY_ANDROID xmlDoc.LoadXml(Resources.Load <TextAsset>("course").text); #else xmlDoc.Load(Application.dataPath + "/data/course.xml"); #endif XmlNodeList lessonsNodes = xmlDoc.DocumentElement.SelectNodes("/Course/Lesson"); Debug.Log(lessonsNodes.Count); for (int i = 0; i < lessonsNodes.Count; i++) { var lesson = Lesson.FromXml(lessonsNodes.Item(i)); Game.lessons.Add(lesson); } Game.navigation.ShowLessonsMenu(); }