protected override void DisposeResource() { if (spriteObject != null) { spriteObject.Dispose(); spriteObject = null; } if (ResourceManager != null) { ResourceManager.Dispose(); ResourceManager = null; } base.DisposeResource(); }