/// <summary> /// This methods shows ads, after showing - change type of monetization system /// /// </summary> public static void showAndSwitchAds() { switch (currentAdsType) { case AdsType.HeyzApp: if (isHeyzappInited) { if (HZInterstitialAd.isAvailable()) { HZInterstitialAd.show(); currentAdsType = AdsType.AdMob; } } else { Debug.LogWarning("AdsManager: init Heyzapp from showAndSwitchAds"); initInterstitial(); } break; case AdsType.AdMob: if (interstitial != null) { if (interstitial.IsLoaded()) { interstitial.Show(); currentAdsType = AdsType.HeyzApp; } } else { Debug.LogWarning("AdsManager: admob not inited. But we init this after this try"); initInterstitial(); } break; } }