/// <summary> /// Displays the game's end screen. Called by GameManager after few seconds delay. /// Stops Everplay recording and tries to display a video ad, if not shown already. /// </summary> public void ShowGameOver() { UnityEveryplayManager.StopRecord(); //hide text but enable game over window gameOverText.gameObject.SetActive(false); gameOverMenu.SetActive(true); //check whether an ad was shown during the game //if no ad was shown during the whole round, we request one here // #if UNITY_ADS****************************** // if(!UnityAdsManager.didShowAd()) // UnityAdsManager.ShowAd(true); // #endif }