void Awake() { #if UNITY_ANDROID path = Application.persistentDataPath; #endif #if UNITY_STANDALONE_WIN Debug.Log("我是从Windows的电脑上运行的"); path = Application.streamingAssetsPath; #endif Debug.Log(path); path += "/DataInfo.xml"; if (!DirFileHelper.IsExistsFile(path)) { XmlHelper.CreateXml(path, "Root", TagInfo); SetIpPortInfo("", "", false); } }