public void EndGame() { FindObjectOfType <ScoreText>().Game = false; PlayGamesScript.AddScoreToLeaderboard(GPGSIds.leaderboard_best_players, FindObjectOfType <ScoreText>().score); AdScript.instance.ShowFullscreenAd(); changer.ChangeBoxToBlack(); StartCoroutine(RestartLevel()); }