Example #1
0
    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);
    }