Пример #1
0
        public static void Destroy()
        {
            // Get the instance
            GameSpriteManager pMan = GameSpriteManager.privGetInstance();

            Debug.WriteLine("--->GameSpriteMan.Destroy()");
            pMan.baseDestroy();

#if (TRACK_DESTRUCTOR)
            Debug.WriteLine("     {0} ({1})", GameSpriteMan.pSpriteRef, GameSpriteMan.pSpriteRef.GetHashCode());
            Debug.WriteLine("     {0} ({1})", GameSpriteMan.pInstance, GameSpriteMan.pInstance.GetHashCode());
#endif
            GameSpriteManager.pSpriteRef = null;
            GameSpriteManager.pInstance  = null;
        }