void GameOver() { SKTransition reveal = SKTransition.FlipHorizontalWithDuration(0.5); var gameOverScene = new GameOverScene(Size, (int)score); View.PresentScene(gameOverScene, reveal); }
protected override void Initialize() { base.Initialize(); // -- Creating new objects menuScene = new MenuScene(this); gameScene = new GameScene(this); gameOverScene = new GameOverScene(this); // -- Settings IsMouseVisible = true; Window.AllowUserResizing = true; // -- MenuState.IsShowMainMenuScene = true; }