public void LoadFile(AnimationExportFile file) { foreach (var a in file.List) { AddLabel(new AnimationLabel(a)); } }
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); }