public void Init()
 {
     googleAd          = new GoogleBannerAd();
     chartAd           = new ChartboostAd();
     vungleAd          = new VungleAd(consoleText);
     consoleText.text += "Initialized = true\n";
 }
Example #2
0
 /// <summary>
 /// Init this instance.
 /// </summary>
 private void Init()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
         if (admob == null)
         {
             admob = GetComponent <AdMob> ();
         }
         if (chartBoostAd == null)
         {
             chartBoostAd = GetComponent <ChartboostAd> ();
         }
     }
     else
     {
         Destroy(gameObject);
     }
 }