コード例 #1
0
 private void OnDestroy()
 {
     if ((bool)nativeAd)
     {
         nativeAd.Dispose();
     }
     UnityEngine.Debug.Log("NativeAdTest was destroyed!");
 }
コード例 #2
0
        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;
        }