void unload() { #if UNITY_ANDROID || UNITY_IPHONE ban.Hide(); #endif return; }
public void CallFullScreenAd() { banner.Hide(); revmob.ShowFullscreen(); }
private void HideBanner() { bannerLayout.Visibility = ViewStates.Gone; if (revmobBanner != null) { revmobBanner.Hide(); } }
private void HideBanner() { devicesListLayout.SetPadding(16, 16, 16, 0); bannerLayout.Visibility = ViewStates.Gone; if (revmobBanner != null) { revmobBanner.Hide(); } }
void OnGUI() { if (GUILayout.Button("Start Session")) { #if !UNITY_EDITOR revmob = RevMob.Start(REVMOB_APP_IDS, gameObject.name); #endif } if (GUILayout.Button("Create Intertitial")) { #if !UNITY_EDITOR fullscreen = revmob.CreateFullscreen(); #endif } if (GUILayout.Button("Display Interstitial")) { #if !UNITY_EDITOR if (fullscreen == null) { fullscreen = revmob.CreateFullscreen(); } fullscreen.Show(); #endif } if (GUILayout.Button("Create Banner")) { #if !UNITY_EDITOR loadedBanner = revmob.CreateBanner(); #endif } if (GUILayout.Button("Show Banner")) { #if !UNITY_EDITOR loadedBanner.Show(); #endif } if (GUILayout.Button("Hide Banner")) { #if !UNITY_EDITOR loadedBanner.Hide(); #endif } }
public override void hideBanner() { //Debug.Log("hide revmob"); try { if (Info.IsEditor() || (firstTime && !Setup())) { //Debug.Log("return revmob"); return; } #if UNITY_IPHONE if (banner != null) { banner.Hide(); } #endif } catch { Error(API, ERROR_TRY_HIDE_BANNER); } }