Пример #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.

            mTitleScreen = new TitleScreen(this.Content, new EventHandler(TitleScreenEvent), this);
            mInGameScreen = new InGameScreen(this.Content, new EventHandler(InGameEvent), this);
            mOptionsScreen = new OptionsScreen(this.Content, new EventHandler(OptionsScreenEvent), this, graphics);
            mHighscoreScreen = new HighscoreScreen(this.Content, new EventHandler(HighscoreScreenEvent), this);
            mUnlockablesScreen = new UnlockablesScreen(this.Content, new EventHandler(UnlockablesScreenEvent), this);

            mCurrentScreen = mTitleScreen;
        }