Example #1
0
        public void ResetPixelOffset()
        {
            if (null == this.sprites)
            {
                return;
            }

            for (int n = 0; n < this.sprites.Length; ++n)
            {
                SpriteCache sc = this.sprites[n];
                if (sc && sc)
                {
                    if (this.UsePixelOffset)
                    {
                        sc.Assign(sc, this.GetPixelOffset(n));
                    }
                    else
                    {
                        sc.Assign(sc);
                    }
                }
            }
        }