Esempio n. 1
0
        public static SaveContainerTuple <T> AddSaveTo <T>(this T Save, VisualStudioView vsv, Action <ISaveAction> y)
            where T : Sprite, ISaveActionWhenReady
        {
            var x = vsv.AddSave(Save);

            x.Container.style.backgroundColor = Color.Gray;
            x.Save.WhenReady(
                i =>
            {
                x.Container.style.backgroundColor = Color.None;
                y(i);
            }
                );

            return(x);
        }