IEnumerator WaitForAd(bool isQuit, bool isRewarded) { yield return(new WaitForSeconds(isQuit ? 4 : 6)); while (!adCont.IsReady(false)) { yield return(null); } adCont.ShowAd(isRewarded, -1); adCont.ShowAd(isRewarded, -1); }