Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

How do I pause all game activity until unity ad ends

$
0
0
I am making a mobile game with unity. I need to make it so that all game activity is paused while the ad is running. My ad script is below: public void ShowAd() { Advertisement.Initialize(GameId, true); StartCoroutine(ShowAdWhenReady()); } IEnumerator ShowAdWhenReady() { while (!Advertisement.IsReady()) yield return null; Advertisement.Show(); } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>