Beispiel #1
0
 // Token: 0x06000CB6 RID: 3254 RVA: 0x000502DC File Offset: 0x0004E6DC
 private void Start()
 {
     Time.timeScale          = 1f;
     this.audio              = base.GetComponent <AudioSource>();
     this.audio.volume       = 1f;
     this.defaultClip        = this.audio.clip;
     Screen.orientation      = ScreenOrientation.LandscapeLeft;
     this.exitscreen         = this.exitscreen.GetComponent <Canvas>();
     this.exitscreen.enabled = false;
     base.StartCoroutine(this.StartButtons());
     if (Application.platform == RuntimePlatform.Android && !Application.isEditor)
     {
         Advertisement.Initialize(Adpack.Unity_ID);
         Admob.Instance().removeBanner("defaultBanner");
         Admob.Instance().initAdmob(Adpack.AD_MOB_ID, Adpack.AD_MOB_INTERSTITIAL_ID);
         Admob.Instance().loadInterstitial();
         HeyzapAds.Start("20af69e9c1ecd52279380e39b0c6216f", 0);
         HZInterstitialAd.fetch("default");
         AppLovin.SetSdkKey(Adpack.apploving);
         AppLovin.InitializeSdk();
         AppLovin.SetUnityAdListener(base.gameObject.name);
         AppLovin.PreloadInterstitial(null);
     }
 }
Beispiel #2
0
 /* Fetch ad with specific tag */
 public void FetchInterstitial(string tag)
 {
     HZInterstitialAd.fetch(tag);
 }