public static void LoadAds(string zone, AdListener del, AdAlignment alignment) { adListener = del; #if UNITY_ANDROID if (Application.platform == RuntimePlatform.Android) { JNICallVoid(classPath, "loadAds", zone, (int)alignment); } #endif #if UNITY_IPHONE if (Application.platform == RuntimePlatform.IPhonePlayer) { _Native_Muneris_LoadAds(zone, (int)alignment); } #endif }
public static void LoadAds(BannerAdSize size, string zone, AdListener del, AdAlignment alignment) { adListener = del; string sz = (size == BannerAdSize.Banner_Size_768x90) ? "768x90" : "320x50"; #if UNITY_ANDROID if (Application.platform == RuntimePlatform.Android) { JNICallVoid(classPath, "loadAds", sz, zone, (int)alignment); } #endif #if UNITY_IPHONE if (Application.platform == RuntimePlatform.IPhonePlayer) { _Native_Muneris_LoadAdsWithSize(sz, zone, (int)alignment); } #endif }