Пример #1
0
        public void unload()
        {
            Game.Components.Remove(input);
            Game.Components.Remove(hud);

            hud.unload();
            input.unload();

            background  = null;
            pauseButton = null;
            random      = null;
            mainGrid.unload();
            previewGrid.unload();
            mainBlock.unload();
            previewBlock.unload();

            dropCounter      = null;
            accelDropCounter = null;
            movementCounter  = null;
            updateCounter    = null;
            bonusCounter     = null;
            time             = TimeSpan.Zero;
            increaseBonus    = false;
            score            = 0;
            level            = 0;
            bonus            = 0;
            totalDeleted     = 0;
            rowsDeleted      = 0;
            increase         = 0;

            isLoaded = false;
        }
Пример #2
0
        public virtual void unload()
        {
            hud.unload();

            background = null;
            random     = null;
            mainGrid.unload();
            previewGrid.unload();
            mainBlock.unload();
            previewBlock.unload();

            fallCounter      = null;
            accelFallCounter = null;
            movementCounter  = null;
            updateCounter    = null;
            bonusCounter     = null;
            time             = TimeSpan.Zero;
            increaseBonus    = false;
            score            = 0;
            level            = 0;
            bonus            = 0;
            totalDeleted     = 0;
            rowsDeleted      = 0;
            increase         = 0;
        }