示例#1
0
        private void OnPlayGame()
        {
            _currentLevel = new Scene.LevelScene(GraphicsDevice, Content);

            _currentLevel.OnPlayerDeath += OnPlayerDeath;

            _currentLevel.InitializeContent();
            _currentScene = _currentLevel;
        }
示例#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;
        }
示例#3
0
        private void OnPlayerDeath()
        {
            _currentLevel.OnPlayerDeath -= OnPlayerDeath;

            _currentScene = _menuScene;
        }