public static void Cache(InterstitialType interstitialType) { PlayAdsSDK.EnsureInstance(); if (!PlayAdsSDK.ready) { PlayAdsSDK.Start(ACTION_CACHE, interstitialType); return; } PlayAdsSDK.PlayAdsSDKCache(PlayAdsSDK.GetTypeString(interstitialType)); }
public static void Show(InterstitialType interstitialType) { PlayAdsSDK.EnsureInstance(); if (!PlayAdsSDK.ready) { PlayAdsSDK.Start(ACTION_SHOW, interstitialType); return; } PlayAdsSDK.PlayAdsSDKShow(PlayAdsSDK.GetTypeString(interstitialType)); }
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)); }
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); }
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(); }