Esempio n. 1
0
 public void OnClickedChangeNetwork()
 {
     SelectedAdNetwork++;
     if (SelectedAdNetwork > 5)
     {
         SelectedAdNetwork = 0;
     }
     if (SelectedAdNetwork == 1)
     {
         adPartner = AdsMaster.FindActiveAdProvider(ProviderID.Admob);
     }
     else if (SelectedAdNetwork == 2)
     {
         adPartner = AdsMaster.FindActiveAdProvider(ProviderID.ChartBoost);
     }
     else if (SelectedAdNetwork == 3)
     {
         adPartner = AdsMaster.FindActiveAdProvider(ProviderID.UnityAd);
     }
     else if (SelectedAdNetwork == 4)
     {
         adPartner = AdsMaster.FindActiveAdProvider(ProviderID.Vungle);
     }
     else if (SelectedAdNetwork == 5)
     {
         adPartner = AdsMaster.FindActiveAdProvider(ProviderID.FbAd);
     }
     else
     {
         adPartner = null;
     }
 }