Exemple #1
0
        static public AnimationProject Load(List <string> files)
        {
            AnimationProject rst = new AnimationProject();

            foreach (var file in files)
            {
                XElement root = Tools.LoadXml("Scripts/" + file);
                foreach (var unit in root.Elements("animation"))
                {
                    rst.Units.Add(AnimationUnit.Parse(unit));
                }
            }
            return(rst);
        }
Exemple #2
0
 public static void Init()
 {
     project = AnimationProject.Load(GameProject.GetFiles("animation"));
 }