public ConfigurationViewModel(AdService adService)
 {
     _adService             = adService;
     _configs               = new ObservableCollection <AdConfiguration>(AdConfiguration.Configurations);
     _selectedConfig        = AdConfiguration.CurrentConfiguration;
     _configDetailViewModel = new ConfigDetailViewModel();
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        if (Instance != null)
        {
            Destroy(gameObject);
            return;
        }

        MobileAds.Initialize(initStatus => { });
        rewardBasedVideo               = RewardBasedVideoAd.Instance;
        rewardBasedVideo.OnAdLoaded   += HandleRewardBasedVideoLoaded;
        rewardBasedVideo.OnAdRewarded += HandleRewardBasedVideoRewarded;
        rewardBasedVideo.OnAdClosed   += HandleRewardBasedVideoClosed;
        RequestBanner();
        DontDestroyOnLoad(gameObject);
        Instance = this;
    }
Beispiel #3
0
 public AdmobRewarded(AdConfiguration config) : base(config)
 {
 }
Beispiel #4
0
 public AdmobInterstitial(AdConfiguration config) : base(config)
 {
 }