예제 #1
0
    public static void destroy()
    {
      #if UNITY_ANDROID
        HZBannerAdAndroid.destroy();
      #endif

      #if UNITY_IPHONE && !UNITY_EDITOR
        HZBannerAdIOS.destroy();
      #endif
    }
예제 #2
0
    public static void hide()
    {
      #if UNITY_ANDROID
        HZBannerAdAndroid.hide();
      #endif

      #if UNITY_IPHONE && !UNITY_EDITOR
        HZBannerAdIOS.hide();
      #endif
    }
예제 #3
0
    public static void show(string position)
    {
      #if UNITY_ANDROID
        HZBannerAdAndroid.show(position, "");
      #endif

      #if UNITY_IPHONE && !UNITY_EDITOR
        HZBannerAdIOS.show(position, "");
      #endif
    }
예제 #4
0
    public static void showWithTag(string position, string tag)
    {
      #if UNITY_ANDROID
        HZBannerAdAndroid.show(position, tag);
      #endif

      #if UNITY_IPHONE && !UNITY_EDITOR
        HZBannerAdIOS.show(position, tag);
      #endif
    }
예제 #5
0
 public static bool getCurrentBannerDimensions(out Rect banner)
 {
   #if UNITY_ANDROID
     return(HZBannerAdAndroid.getCurrentBannerDimensions(out banner));
   #elif UNITY_IPHONE && !UNITY_EDITOR
     return(HZBannerAdIOS.getCurrentBannerDimensions(out banner));
   #else
     banner = new Rect(0, 0, 0, 0);
     return(false);
   #endif
 }