//Função de tentar novamente;
    void TryAgain()
    {
        Time.timeScale = 0;
        UICanvas.transform.Find("PainelTryAgain").gameObject.SetActive(false);
        if (ads != null)
        {
            if (canTryAgain)
            {
                if (ads.IsReady("rewardedVideo"))
                {
                    ads.ShowAds("rewardedVideo");
                    isDead = false;
                    UICanvas.transform.Find("EndUI").gameObject.SetActive(isDead);
                }
                else
                {
                    Time.timeScale = 1;
                    UICanvas.transform.Find("PainelTryAgain").gameObject.SetActive(true);
                    UICanvas.transform.Find("PainelTryAgain").Find("CantAds").gameObject.SetActive(true);
                    return;
                }
            }
            else
            {
                //ads.OnUnityAdsReady("video");
                UICanvas.transform.Find("EndUI").gameObject.SetActive(isDead);
                UICanvas.transform.Find("PainelTryAgain").gameObject.SetActive(false);
            }
        }

        else
        {
            UICanvas.transform.Find("EndUI").gameObject.SetActive(true);
        }
    }
    public void QuitButton()
    {
        //Por enquanto -- A ideia é retornar ao menu principal;
        GM.DeathCounter++;
        if (GM.DeathCounter == 3)
        {
            ads.ShowAds("video");
            GM.DeathCounter = 0;
        }
        PauseMenu();

        player.SetNumberOfDeaths(player.deathCounter + 1);
        player.SetRunDistance(SceneManager.GetActiveScene().buildIndex);
        player.SetRunSpeed(gameTimer.GetTime());
        player.SavePlayer();

        gameTimer.SetTime(0);
        SceneManager.LoadScene(0);
    }