public static string ReadFile(string path) { try { StreamReader sr = new StreamReader(path, Encoding.Default); string content = string.Empty; string outString = ""; while ((content = sr.ReadLine()) != null) { outString += content + "\n"; } sr.Close(); return(outString); } catch (Exception e) { MyDebug.LogFormat("ReadFile is Call.But Path is Null. Path:{0},err:{1},", path, e); return(""); } }
internal void Load() { MyDebug.LogFormat("开始下载Bundle【Path】:{0}", path); OnLoad(); }