public override void Destroy()
        {
            // Generated Destroy

            if (MenuItemPlay != null)
            {
                MenuItemPlay.Destroy();
                MenuItemPlay.Detach();
            }
            if (MenuItemExit != null)
            {
                MenuItemExit.Destroy();
                MenuItemExit.Detach();
            }
            if (TitleTextLabel != null)
            {
                TitleTextLabel.Destroy();
                TitleTextLabel.Detach();
            }
            if (BackgroundImage != null)
            {
                BackgroundImage.Destroy();
                BackgroundImage.Detach();
            }
            if (GridBackgroundInstance != null)
            {
                GridBackgroundInstance.Destroy();
                GridBackgroundInstance.Detach();
            }
            if (BoardTileO1 != null)
            {
                BoardTileO1.Destroy();
                BoardTileO1.Detach();
            }
            if (BoardTileO2 != null)
            {
                BoardTileO2.Destroy();
                BoardTileO2.Detach();
            }
            if (BoardTileX1 != null)
            {
                BoardTileX1.Destroy();
                BoardTileX1.Detach();
            }
            if (BoardTileX2 != null)
            {
                BoardTileX2.Destroy();
                BoardTileX2.Detach();
            }
            if (BoardTileX3 != null)
            {
                BoardTileX3.Destroy();
                BoardTileX3.Detach();
            }
            if (MenuItemAbout != null)
            {
                MenuItemAbout.Destroy();
                MenuItemAbout.Detach();
            }

            base.Destroy();

            CustomDestroy();
        }
        public override void Destroy()
        {
            // Generated Destroy

            if (Player1Label != null)
            {
                Player1Label.Destroy();
                Player1Label.Detach();
            }
            if (Player2Label != null)
            {
                Player2Label.Destroy();
                Player2Label.Detach();
            }
            if (PlayButton != null)
            {
                PlayButton.Destroy();
                PlayButton.Detach();
            }
            if (BackButton != null)
            {
                BackButton.Destroy();
                BackButton.Detach();
            }
            if (BackgroundImage != null)
            {
                BackgroundImage.Destroy();
                BackgroundImage.Detach();
            }
            if (Player1HumanIcon != null)
            {
                Player1HumanIcon.Destroy();
                Player1HumanIcon.Detach();
            }
            if (Player2HumanIcon != null)
            {
                Player2HumanIcon.Destroy();
                Player2HumanIcon.Detach();
            }
            if (Player1ComputerIcon != null)
            {
                Player1ComputerIcon.Destroy();
                Player1ComputerIcon.Detach();
            }
            if (Player2ComputerIcon != null)
            {
                Player2ComputerIcon.Destroy();
                Player2ComputerIcon.Detach();
            }
            if (Player1Tile != null)
            {
                Player1Tile.Destroy();
                Player1Tile.Detach();
            }
            if (Player2Tile != null)
            {
                Player2Tile.Destroy();
                Player2Tile.Detach();
            }
            if (Player1AiSelector != null)
            {
                Player1AiSelector.Destroy();
                Player1AiSelector.Detach();
            }
            if (Player2AiSelector != null)
            {
                Player2AiSelector.Destroy();
                Player2AiSelector.Detach();
            }

            base.Destroy();

            CustomDestroy();
        }
Exemple #3
0
        public override void Destroy()
        {
            // Generated Destroy

            if (BackgroundImage != null)
            {
                BackgroundImage.Destroy();
                BackgroundImage.Detach();
            }
            if (BackButton != null)
            {
                BackButton.Destroy();
                BackButton.Detach();
            }
            if (ProgrammingLabel != null)
            {
                ProgrammingLabel.Destroy();
                ProgrammingLabel.Detach();
            }
            if (HeaderText != null)
            {
                HeaderText.Destroy();
                HeaderText.Detach();
            }
            if (ProgrammingText != null)
            {
                ProgrammingText.Destroy();
                ProgrammingText.Detach();
            }
            if (SupportLabel != null)
            {
                SupportLabel.Destroy();
                SupportLabel.Detach();
            }
            if (SupportText != null)
            {
                SupportText.Destroy();
                SupportText.Detach();
            }
            if (ArtworkLabel != null)
            {
                ArtworkLabel.Destroy();
                ArtworkLabel.Detach();
            }
            if (ArtworkText != null)
            {
                ArtworkText.Destroy();
                ArtworkText.Detach();
            }
            if (PaintingsLabel != null)
            {
                PaintingsLabel.Destroy();
                PaintingsLabel.Detach();
            }
            if (PaintingsText != null)
            {
                PaintingsText.Destroy();
                PaintingsText.Detach();
            }
            if (SoundEffectsLabel != null)
            {
                SoundEffectsLabel.Destroy();
                SoundEffectsLabel.Detach();
            }
            if (SoundEffectsText != null)
            {
                SoundEffectsText.Destroy();
                SoundEffectsText.Detach();
            }
            if (MusicLabel != null)
            {
                MusicLabel.Destroy();
                MusicLabel.Detach();
            }
            if (MusicText != null)
            {
                MusicText.Destroy();
                MusicText.Detach();
            }

            base.Destroy();

            CustomDestroy();
        }