// Start is called before the first frame update void Start() { xmlRead = new XMLRead("Missions.xml"); print(xmlRead.CreatePath()); if (xmlRead.Read()) { print("文件读取正确"); foreach (XmlElement xmlEle in xmlRead.XMLdoc.SelectSingleNode("Missions").ChildNodes) { Mission mission = new Mission(xmlEle); mission_List.Add(mission); } } else { print("文件路径不对"); } }