private void EndGame(string endGameText) { gamePaused = true; modalPanel.Choise(endGameText, quitAction); }