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