Example #1
0
 public void GameOver()
 {
     if (!gameOverProcess)
     {
         gameOverProcess = true;
         gameArea.OpenAllClosedCells();
         gameArea.ExplodeAllMines();
         if (GameOverAction == null)
         {
             StartNewGame(gameArea);
         }
         else
         {
             GameOverAction(() => {
                 return(StartNewGame(gameArea));
             });
         }
         gameOverProcess = false;
     }
 }