Пример #1
0
 /// <summary>
 /// Shows an ad with the given options.
 /// </summary>
 /// <param name="showOptions"> The options to show the ad with, or the default options if <c>null</c></param>
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions) {
     if (showOptions == null) {
         showOptions = new HZIncentivizedShowOptions();
     }
     
     #if UNITY_ANDROID
     HZIncentivizedAdAndroid.ShowWithOptions(showOptions);
     #endif
     
     #if UNITY_IPHONE && !UNITY_EDITOR
     HZIncentivizedAdIOS.ShowWithOptions(showOptions);
     #endif
 }
Пример #2
0
 public static void show(string tag) {
     HZIncentivizedShowOptions showOptions = new HZIncentivizedShowOptions();
     showOptions.Tag = tag;
     HZInterstitialAd.ShowWithOptions(showOptions);;
 }
Пример #3
0
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions) {
     if(Application.platform != RuntimePlatform.Android) return;
     
     AndroidJNIHelper.debug = false;
     using (AndroidJavaClass jc = new AndroidJavaClass("com.heyzap.sdk.extensions.unity3d.UnityHelper")) { 
         jc.CallStatic("showIncentivized", showOptions.Tag, showOptions.IncentivizedInfo); 
     }
 }
Пример #4
0
 public static void ShowWithOptions(HZIncentivizedShowOptions showOptions) {
     hz_ads_show_incentivized_with_custom_info(showOptions.Tag, showOptions.IncentivizedInfo);
 }