private void CreateInfoLoop(int no, Transform tf, string[] usename)
 {
     if (!((UnityEngine.Object)null == (UnityEngine.Object)tf))
     {
         List <AnmKeyInfo> list = null;
         bool flag = false;
         if (usename != null && Array.IndexOf(usename, tf.name) == -1)
         {
             flag = true;
         }
         if (!flag)
         {
             if (!dictInfo.TryGetValue(tf.name, out list))
             {
                 list = new List <AnmKeyInfo>();
                 dictInfo[tf.name] = list;
             }
             AnmKeyInfo anmKeyInfo = new AnmKeyInfo();
             anmKeyInfo.Set(no, tf.localPosition, tf.localEulerAngles, tf.localScale);
             list.Add(anmKeyInfo);
         }
         for (int i = 0; i < tf.childCount; i++)
         {
             Transform child = tf.GetChild(i);
             CreateInfoLoop(no, child, usename);
         }
     }
 }
 public void LoadInfo(Stream st)
 {
     using (BinaryReader binaryReader = new BinaryReader(st))
     {
         int num = binaryReader.ReadInt32();
         dictInfo.Clear();
         for (int i = 0; i < num; i++)
         {
             List <AnmKeyInfo> list = new List <AnmKeyInfo>();
             string            key  = binaryReader.ReadString();
             dictInfo[key] = list;
             int num2 = binaryReader.ReadInt32();
             for (int j = 0; j < num2; j++)
             {
                 AnmKeyInfo anmKeyInfo = new AnmKeyInfo();
                 anmKeyInfo.no    = binaryReader.ReadInt32();
                 anmKeyInfo.pos.x = binaryReader.ReadSingle();
                 anmKeyInfo.pos.y = binaryReader.ReadSingle();
                 anmKeyInfo.pos.z = binaryReader.ReadSingle();
                 anmKeyInfo.rot.x = binaryReader.ReadSingle();
                 anmKeyInfo.rot.y = binaryReader.ReadSingle();
                 anmKeyInfo.rot.z = binaryReader.ReadSingle();
                 anmKeyInfo.scl.x = binaryReader.ReadSingle();
                 anmKeyInfo.scl.y = binaryReader.ReadSingle();
                 anmKeyInfo.scl.z = binaryReader.ReadSingle();
                 list.Add(anmKeyInfo);
             }
         }
     }
 }
    private void GetListString(string text)
    {
        string[] array = text.Split('\n');
        int      num   = array.Length;

        dictInfo.Clear();
        for (int i = 0; i < num; i++)
        {
            List <AnmKeyInfo> list   = new List <AnmKeyInfo>();
            string[]          array2 = array[i].Split('\t');
            dictInfo[array2[0]] = list;

            int num2 = array2.Length;
            for (int j = 1; j < num2; j++)
            {
                AnmKeyInfo anmKeyInfo = new AnmKeyInfo();
                //anmKeyInfo.no =
                int.TryParse(array2[j], out anmKeyInfo.no);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.pos.x);
                j++;

                float.TryParse(array2[j], out anmKeyInfo.pos.y);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.pos.z);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.rot.x);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.rot.y);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.rot.z);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.scl.x);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.scl.y);
                j++;
                float.TryParse(array2[j], out anmKeyInfo.scl.z);
                list.Add(anmKeyInfo);
            }
        }
    }