Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
        public void unload()
        {
            if (pixelTexture != null)
            {
                pixelTexture.texture2D.Dispose();
            }
            pixelTexture = null;

            batcher.Dispose();
            batcher = null;
        }
Example #2
0
        public void Unload()
        {
            if (PixelTexture != null)
            {
                PixelTexture.Texture2D.Dispose();
            }
            PixelTexture = null;

            Batcher.Dispose();
            Batcher = null;
        }