This class make an effect between two ColorFadeTransition pasing first to a specified color (white for example)
Inheritance: ScreenTransition
Example #1
0
        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);
        }