Exemplo n.º 1
0
 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("");
     }
 }
Exemplo n.º 2
0
 internal void Load()
 {
     MyDebug.LogFormat("开始下载Bundle【Path】:{0}", path);
     OnLoad();
 }