Exemplo n.º 1
0
 public void ReadFileList()
 {
     if (LoadFromFile)
     {
         if (File.Exists(Path.Combine(filepath, "FileList.txt")))
         {
             //The file exists and can be loaded
             StreamReader file = File.OpenText(Path.Combine(filepath, "FileList.txt"));
             string       s    = file.ReadLine();
             while (s != null)
             {
                 AnimationData data = new AnimationData(s.Replace(".dat", ""));
                 data.LoadFromFile(filepath);
                 AnimationDatas.Add(data);
                 s = file.ReadLine();
                 Debug.Log(data.GetAnimationCurveData());
             }
             file.Close();
         }
     }
 }