Esempio n. 1
0
    public void RestartGame()
    {
        theScoreManager.scoreIncreasing = false;
        forReportScore = (long)theScoreManager.scoreCount;
        //Social.ReportScore(forReportScore, "CgkI-_nslMgKEAIQAQ", (bool success) => {

        //});
        thePlayer.gameObject.SetActive(false);
        //if (theScoreManager.scoreCount > pointsBeforeAddingAdsCount) {
        //	byteForAd++;
        //}
        //if (byteForAd >= triesBeforeAd)
        //{
        //	byteForAd = 0;
        //	if (interstitial.IsLoaded())
        //		{
        //			interstitial.Show();
        //		}
        //}
        theDeathScreen.gameObject.SetActive(true);
        PlayerPrefs.SetFloat("TotalRun", theScoreManager.totalRun);
        theDeathScreen.Activated();
    }