private void CheckForAd() { bool hasRemoveAds = false; if (SaveManager.Instance != null) { hasRemoveAds = SaveManager.Instance.GetHasRemoveAdsStatus(); } int numPlays = StaticInfo.GetNumberOfPlays(); if (numPlays > 0 && numPlays % 3 == 0 && !hasRemoveAds && !watchedRewardedAd) { if (UnityAds.CheckForAd()) { SoundManager.Instance.FadeOutBackgroundMusic(1f); UnityAds.ShowAd(AdCompleted); } else { // Debug.Log("Add didn't show"); LoadScene(currentLoadString); } } else { LoadScene(currentLoadString); } }