Exemple #1
0
 private static void FreeProvider(IVideoAd provider)
 {
     if (provider != null)
     {
         provider.OnFinished -= OnVideoFinished;
     }
 }
Exemple #2
0
        public static void Init()
        {
            if (_inited)
            {
                return;
            }

            AdsController.Instance.Init();

            for (int i = 0; i < UltimateAdsSettings.Instance.Networks.Count; i++)
            {
                if (UltimateAdsSettings.Instance.Networks [i].IsEnabled && UltimateAdsSettings.Instance.Networks [i].Provider is IVideoAd)
                {
                    IVideoAd video = UltimateAdsSettings.Instance.Networks [i].Provider as IVideoAd;
                    _providers.Add(video);
                    video.Init();
                }
            }

            if (_providers.Count > 0)
            {
                _inited = true;
                Load();
            }

            Debug.Log(_providers.Count + " Video Providers initialized");
        }
Exemple #3
0
 private static void SelectProvider(IVideoAd provider)
 {
     _currentProvider = provider;
     if (provider != null)
     {
         provider.OnFinished += OnVideoFinished;
     }
 }