Example #1
0
 // Use this for initialization
 void Awake()
 {
             #if !UNITY_EDITOR
     InitSDK();
     AdSDK.StartSDK(debug);
             #endif
 }
Example #2
0
 void OnApplicationPause(bool pauseStatus)
 {
     if (pauseStatus)
     {
         AdSDK.StartDebug();
     }
     else
     {
         AdSDK.StopDebug();
     }
 }
Example #3
0
        public static void ShowAds()
        {
            int count = PlayerPrefs.GetInt("lose_count", 0);

            count++;
            if (count == 5)
            {
#if UNITY_ANDROID
                if (AdSDK.readyFullScreen)
                {
                    AdSDK.readyFullScreen = false;
                    AdSDK.ShowFullscreen();
                    AdSDK.PreloadFullscreen();
                }
#endif
//#if UNITY_IOS
//                Appodeal.show(Appodeal.INTERSTITIAL);
//#endif
                count = 0;
            }
            PlayerPrefs.SetInt("lose_count", count);
            PlayerPrefs.Save();
        }
Example #4
0
    void Preload()
    {
#if UNITY_ANDROID
        AdSDK.PreloadFullscreen();
#endif
    }
Example #5
0
 void onAdReadyFailed(AndroidJavaObject ad)
 {
     AdSDK.PreloadFullscreen();
 }
Example #6
0
 void Start()
 {
     mMainThreadLooper = new MainThreadLooper();
     AdSDK.start();
 }
Example #7
0
 void Start()
 {
             #if !UNITY_EDITOR
     AdSDK.setFullscreenListener();
             #endif
 }