private void OnPlayGame() { _currentLevel = new Scene.LevelScene(GraphicsDevice, Content); _currentLevel.OnPlayerDeath += OnPlayerDeath; _currentLevel.InitializeContent(); _currentScene = _currentLevel; }
/// <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; }
private void OnPlayerDeath() { _currentLevel.OnPlayerDeath -= OnPlayerDeath; _currentScene = _menuScene; }