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); }
public static void Init() { project = AnimationProject.Load(GameProject.GetFiles("animation")); }