Exemplo n.º 1
0
    public void ResetGame()
    {
        resetGame = true;
        TheresaWinsUi.SetActive(false);
        EUWinsUi.SetActive(false);
        DrawUi.SetActive(false);

        p1Light.enabled = false;
        p2Light.enabled = false;

        timeLimit = timeLimitHolder;

        StartUi.SetActive(false);
        InGameUi.SetActive(false);


        SettingsUi.SetActive(false);
        CreditsUi.SetActive(false);
        PauseUi.SetActive(false);
        HelpUi.SetActive(false);


        mainLight.enabled = false;

        camController.CameraMoveToGame();

        p1Detection.ResetGame();
        p2Detection.ResetGame();

        timeBtwSpawns = 2;

        StartCoroutine(StartGameMode());
        StartCoroutine(FadeMusic());
    }