private void EnterGameOverState() { currentGameFlowState = GameFlowState.GameOver; gameOverPanel.gameObject.SetActive(true); gameOverScoreText.text = currentScore.ToString(); string name = Regex.Replace(System.Environment.UserName, @"\s+", ""); scoreboardManager.PostScore(name, currentScore); }