Ejemplo n.º 1
0
    private void ShowAd(GAEventType eventType, GAEventCat eventCategory, string eventID)
    {
        if (AdsEnabled)
        {
            switch (eventType)
            {
            case GAEventType.AdsEnabled:
                if (GA.SettingsGA.Trigger_AdsEnabled)
                {
                    ShowAdNow("AdsEnabled");
                }
                break;

            case GAEventType.LevelChange:
                if (GA.SettingsGA.Trigger_SceneChange)
                {
                    ShowAdNow("LevelChange");
                }
                break;

            case GAEventType.Custom:
                foreach (GA_CustomAdTrigger trigger in GA.SettingsGA.CustomAdTriggers)
                {
                    if (eventCategory == trigger.eventCat && eventID.Equals(trigger.eventID))
                    {
                        ShowAdNow("Custom:" + trigger.eventID);
                    }
                }
                break;
            }
        }
    }
Ejemplo n.º 2
0
 public static void ShowAdStatic(GAEventType eventType, GAEventCat eventCategory, string eventID)
 {
     if (GA_ADSUPPORT != null)
     {
         GA_ADSUPPORT.ShowAd (eventType, eventCategory, eventID);
     }
 }
Ejemplo n.º 3
0
 public static void ShowAdStatic(GAEventType eventType, GAEventCat eventCategory, string eventID)
 {
     if (GA_ADSUPPORT != null)
     {
         GA_ADSUPPORT.ShowAd(eventType, eventCategory, eventID);
     }
 }
Ejemplo n.º 4
0
 private void ShowAd(GAEventType eventType, GAEventCat eventCategory, string eventID)
 {
     if (AdsEnabled)
     {
         switch (eventType)
         {
         case GAEventType.AdsEnabled:
             if (GA.SettingsGA.Trigger_AdsEnabled)
             {
                 ShowAdNow("AdsEnabled");
             }
             break;
         case GAEventType.LevelChange:
             if (GA.SettingsGA.Trigger_SceneChange)
             {
                 ShowAdNow("LevelChange");
             }
             break;
         case GAEventType.Custom:
             foreach (GA_CustomAdTrigger trigger in GA.SettingsGA.CustomAdTriggers)
             {
                 if (eventCategory == trigger.eventCat && eventID.Equals(trigger.eventID))
                 {
                     ShowAdNow("Custom:"+trigger.eventID);
                 }
             }
             break;
         }
     }
 }