private void OnDestroy() { if ((bool)nativeAd) { nativeAd.Dispose(); } UnityEngine.Debug.Log("NativeAdTest was destroyed!"); }
protected override void CleanCurrentAD() { if (m_NativeAd == null) { return; } m_NativeAd.NativeAdDidLoad = null; m_NativeAd.NativeAdDidFailWithError = null; m_NativeAd.NativeAdWillLogImpression = null; m_NativeAd.NativeAdDidClick = null; m_NativeAd.Dispose(); m_NativeAd = null; }