Пример #1
0
 // Use this for initialization
 void Awake()
 {
             #if !UNITY_EDITOR
     InitSDK();
     AdSDK.StartSDK(debug);
             #endif
 }
Пример #2
0
 void OnApplicationPause(bool pauseStatus)
 {
     if (pauseStatus)
     {
         AdSDK.StartDebug();
     }
     else
     {
         AdSDK.StopDebug();
     }
 }
Пример #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();
        }
Пример #4
0
    void Preload()
    {
#if UNITY_ANDROID
        AdSDK.PreloadFullscreen();
#endif
    }
Пример #5
0
 void onAdReadyFailed(AndroidJavaObject ad)
 {
     AdSDK.PreloadFullscreen();
 }
Пример #6
0
 void Start()
 {
     mMainThreadLooper = new MainThreadLooper();
     AdSDK.start();
 }
Пример #7
0
 void Start()
 {
             #if !UNITY_EDITOR
     AdSDK.setFullscreenListener();
             #endif
 }