Beispiel #1
0
        public void ShowGameOverHud()
        {
            //clean up bricks
            RemoveRemainingBricksFromGrid();

            //hide ball & paddle
            GameBall.Hide();
            GamePaddle.Hide();

            //game over or naw?
            var bricks = GetBrickCount();

            if (bricks > 0)
            {
                GameOverHud.SetLabelText("You lose!");
            }
            else
            {
                GameOverHud.SetLabelText("You Win!");
            }

            GameOverHud.ShowOrHideHud(show: true);
        }