Esempio n. 1
0
        /// <summary>
        /// Loads the content for all the game components.
        /// </summary>
        protected override void LoadContent()
        {
            base.LoadContent();

            FishingGameContext context = new FishingGameContext();

            context.Game  = this;
            context.Input = _input;
            context.Trial = _trial;

            GameplayScreen gameplayScreen = new GameplayScreen(context);

            gameplayScreen.LoadContent(Content);
            TitleScreen titleScreen = new TitleScreen(context);

            titleScreen.LoadContent(Content);

            _screens.Push(gameplayScreen);
            _screens.Push(titleScreen);
        }