public void LoadFile(AnimationExportFile file)
 {
     foreach (var a in file.List)
     {
         AddLabel(new AnimationLabel(a));
     }
 }
예제 #2
0
        public AnimationExportFile CreateExportFile()
        {
            var list = AnimationsListGui.Instance.Labels;
            List <AnimationData> fileFrames = new List <AnimationData>();

            foreach (var lb in list)
            {
                fileFrames.Add(lb.data);
            }

            var file = new AnimationExportFile(fileFrames);

            return(file);
        }