Ejemplo n.º 1
0
        public static void Destroy()
        {
            // Get the instance
            BoxSpriteMan pMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("--->BoxSpriteMan.Destroy()");
#endif
            pMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("     {0} ({1})", pMan.poNodeCompare, pMan.poNodeCompare.GetHashCode());
            Debug.WriteLine("     {0} ({1})", BoxSpriteMan.pInstance, BoxSpriteMan.pInstance.GetHashCode());
#endif

            pMan.poNodeCompare     = null;
            BoxSpriteMan.pInstance = null;
        }