Exemplo n.º 1
0
        public static UnitCache Of(string fx, int min, int max, int w, int h, System.Action<UnitCache> done)
        {
            var u = new UnitCache();

            Console.WriteLine("LoadCache " + new { fx, min, max });

            u.LoadCache(fx, min, max);
            u.Width = w;
            u.Height = h;

            u.WhenCacheLoaded(done);

            return u;
        }