Example #1
0
 public static void Cache(InterstitialType interstitialType)
 {
     PlayAdsSDK.EnsureInstance();
     if (!PlayAdsSDK.ready)
     {
         PlayAdsSDK.Start(ACTION_CACHE, interstitialType);
         return;
     }
     PlayAdsSDK.PlayAdsSDKCache(PlayAdsSDK.GetTypeString(interstitialType));
 }
Example #2
0
 public static void Show(InterstitialType interstitialType)
 {
     PlayAdsSDK.EnsureInstance();
     if (!PlayAdsSDK.ready)
     {
         PlayAdsSDK.Start(ACTION_SHOW, interstitialType);
         return;
     }
     PlayAdsSDK.PlayAdsSDKShow(PlayAdsSDK.GetTypeString(interstitialType));
 }
Example #3
0
    public static void Cache(AdType adType)
    {
        PlayAdsSDK.EnsureInstance();
        PlayAdsSDK.currentType = adType;

        if (!PlayAdsSDK.SDKReady)
        {
            PlayAdsSDK.Start(ACTION_CACHE, adType);
            return;
        }

        PlayAdsSDK.PlayAdsSDKCache(PlayAdsSDK.GetTypeString(adType));
    }
Example #4
0
    public static void Show(AdType adType)
    {
        PlayAdsSDK.EnsureInstance();
        PlayAdsSDK.currentType = adType;

        if (!PlayAdsSDK.SDKReady)
        {
            PlayAdsSDK.Start(ACTION_SHOW, adType);
            return;
        }

        PlayAdsSDK.comesFromBackground = false;
        PlayAdsSDK.PlayAdsSDKShow(PlayAdsSDK.GetTypeString(adType), PlayAdsSDK.showLoadingScreen);
    }
Example #5
0
    private static void Start(string action, InterstitialType type)
    {
        PlayAdsSDK.EnsureInstance();
        if (!PlayAdsSDK.initializing)
        {
            PlayAdsSDK.initializing  = true;
            PlayAdsSDK.waitingAction = action;
            PlayAdsSDK.waitingType   = type;

            string appID       = "";
            string secretToken = "";

                        #if UNITY_IPHONE
            appID       = PlayAdsSDKSettings.IOSAppID;
            secretToken = PlayAdsSDKSettings.IOSSecretToken;
                        #elif UNITY_ANDROID
            appID       = PlayAdsSDKSettings.AndroidAppID;
            secretToken = PlayAdsSDKSettings.AndroidSecretToken;
                        #endif

            PlayAdsSDK.PlayAdsSDKStart(appID, secretToken, INSTANCE_NAME);
        }
    }
 public static void Edit()
 {
     PlayAdsSDK.EnsureInstance();
     Selection.activeObject = Instance;
 }
 public void OnEnable()
 {
     ManifestModificator.GenerateManifest();
     PlayAdsSDK.EnsureInstance();
 }