Exemplo n.º 1
0
    void FinishRound()
    {
        Debug.Log("Round finished!");
        finished = true;

        if (score > highScore)
        {
            highScore = score;
            PlayerPrefs.SetInt("high_score", highScore);
        }
        PlayerPrefs.SetInt("score", score);

        if (gameFlowController)
        {
            // Switch to end scene
            gameFlowController.GoToScene(2);
        }
    }