Example #1
41
 private void InitializeGameOverSprites()
 {
     _gameOverSprite = new Sprite(this, "textures/gameOver");
     _gameOverSprite.Hide();
     _gameOverSprite.DisableClick();
     _gameOverSprite.CenterHorizontally();
     _gameOverSprite.CenterVertically();
     AddComponent(_gameOverSprite, "Sprites");
     _gameOverSprite.Click += (sender, e) => SceneManager.PlayPreviousScene();
 }