public void OpenGameOver() { //Pause back particles this.backScene.Pause(); var transition = new ColorFadeTransition(Color.White, TimeSpan.FromSeconds(0.5f)); WaveServices.ScreenContextManager.Push(new ScreenContext(new GameOverScene()), transition); }
public void GameOver() { this.blockBuilder.IsActive = false; this.blockBuilder.OnCollision -= OnCollision; this.blockBuilder.OnStarCollected -= OnStarCollected; //Pause back particles this.backScene.Pause(); var transition = new ColorFadeTransition(Color.White, TimeSpan.FromSeconds(0.5f)); WaveServices.ScreenContextManager.Push(new ScreenContext(new GameOverScene()), transition); }