Esempio n. 1
0
 // Token: 0x06000162 RID: 354 RVA: 0x00005084 File Offset: 0x00003284
 public static bool show(string zoneId, string rewardItemKey, Dictionary <string, string> options)
 {
     if (!UnityAds.isShowing)
     {
         UnityAds.isShowing = true;
         if (UnityAds.SharedInstance)
         {
             string options2 = UnityAds.parseOptionsDictionary(options);
             if (UnityAdsExternal.show(zoneId, rewardItemKey, options2))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
        public static bool show(string zoneId, string rewardItemKey, Dictionary <string, string> options)
        {
            if (!_adsShow && _campaignsAvailable)
            {
                if (SharedInstance)
                {
                    string optionsString = parseOptionsDictionary(options);

                    if (UnityAdsExternal.show(zoneId, rewardItemKey, optionsString))
                    {
                        if (OnShow != null)
                        {
                            OnShow();
                        }

                        _adsShow = true;
                        return(true);
                    }
                }
            }

            return(false);
        }