public IEnumerator LoadText() { string srcFile = IPathTools.GetAssetStreamPath() + "/" + GloableConfig.LuaFileListName; string disFile = IPathTools.GetAssetPersistentPath() + "/" + GloableConfig.LuaFileListName; Debuger.Log("srcFile 111 ===" + srcFile); Debuger.Log("disFile 222 ===" + disFile); WWW www = new WWW(srcFile); yield return(www); if (www.isDone) { string tmpStr = www.text; int tmpInt = tmpStr.IndexOf("\n"); string srcArr = tmpStr.Substring(0, tmpInt); FileStream fs = new FileStream(disFile, FileMode.Open); StreamReader sw = new StreamReader(fs); string disArr = sw.ReadLine(); Debuger.Log("srcArr ===" + srcArr); Debuger.Log("disArr ===" + disArr); sw.Close(); fs.Close(); if (disArr != srcArr) { willCopyAsset = true; } } }