Exemplo n.º 1
0
 public void onAdCollapsed(string adUnitId)
 {
     if (MCAdsManager.onAdCollapsedEvent != null)
     {
         MCAdsManager.onAdCollapsedEvent(adUnitId);
     }
     MCAdsManager.LogInfo(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 2
0
 public void onInterstitialClicked(string adUnitId)
 {
     if (MCAdsManager.onInterstitialClickedEvent != null)
     {
         MCAdsManager.onInterstitialClickedEvent(adUnitId);
     }
     MCAdsManager.LogInfo(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 3
0
 public void rewardedVideoAdDidFailToPlay(string adUnitId)
 {
     if (MCAdsManager.rewardedVideoAdDidFailToPlayEvent != null)
     {
         MCAdsManager.rewardedVideoAdDidFailToPlayEvent(adUnitId);
     }
     MCAdsManager.LogWarning(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 4
0
 public void rewardedVideoAdShouldReward(string adUnitId)
 {
     if (MCAdsManager.rewardedVideoAdShouldRewardEvent != null)
     {
         MCAdsManager.rewardedVideoAdShouldRewardEvent(adUnitId);
     }
     MCAdsManager.LogInfo(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 5
0
 public void nativeAdDidFailToLoadAd(string adUnitId)
 {
     if (MCAdsManager.nativeAdDidFailToLoadAdEvent != null)
     {
         MCAdsManager.nativeAdDidFailToLoadAdEvent(adUnitId);
     }
     MCAdsManager.LogWarning(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 6
0
 public void interstitialDidDismiss(string adUnitId)
 {
     if (MCAdsManager.interstitialDidDismissEvent != null)
     {
         MCAdsManager.interstitialDidDismissEvent(adUnitId);
     }
     MCAdsManager.LogInfo(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 7
0
 public void interstitialWillAppear(string adUnitId)
 {
     if (MCAdsManager.interstitialWillAppearAdEvent != null)
     {
         MCAdsManager.interstitialWillAppearAdEvent(adUnitId);
     }
     MCAdsManager.LogInfo(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 8
0
 public void adViewDidLoadAd(string adUnitId)
 {
     if (MCAdsManager.adViewDidLoadAdEvent != null)
     {
         MCAdsManager.adViewDidLoadAdEvent(adUnitId);
     }
     MCAdsManager.LogInfo(MethodBase.GetCurrentMethod().Name + " adUnitId = " + adUnitId);
 }
Exemplo n.º 9
0
 private void Awake()
 {
     if (MCAdsManager.instance)
     {
         UnityEngine.Object.Destroy(base.gameObject);
         return;
     }
     MCAdsManager.instance = this;
     base.gameObject.name  = "MCAdsManager";
     UnityEngine.Object.DontDestroyOnLoad(this);
 }