This class make an effect between two ColorFadeTransition pasing first to a specified color (white for example)
Inheritance: ScreenTransition
コード例 #1
0
ファイル: GamePlayScene.cs プロジェクト: dezol/QuickStarters
        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);
        }
コード例 #2
0
        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);
        }