Exemplo n.º 1
0
        private void OnPlayGame()
        {
            _currentLevel = new Scene.LevelScene(GraphicsDevice, Content);

            _currentLevel.OnPlayerDeath += OnPlayerDeath;

            _currentLevel.InitializeContent();
            _currentScene = _currentLevel;
        }
Exemplo n.º 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            _menuScene = new Scene.MenuScene(GraphicsDevice, Content);
            _menuScene.InitializeContent();

            _menuScene.OnQuitGame += OnQuitGame;

            _menuScene.OnPlayGame += OnPlayGame;



            _currentScene = _menuScene;
        }
Exemplo n.º 3
0
        private void OnPlayerDeath()
        {
            _currentLevel.OnPlayerDeath -= OnPlayerDeath;

            _currentScene = _menuScene;
        }