显示横幅广告
/// <summary>
/// 显示横幅广告
/// </summary>
public void CAll_ShowBannerAd()
{
try
{
#if UNITY_EDITOR
Debug.Log("CAll_ShowBannerAd");
return;
#endif
#if UNITY_ANDROID
if (BANNER.Equals("1"))
{
{
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject>("currentActivity");
jo.Call("ShowBannerAd");
}
}
#endif
}
catch (Exception e)
{
Debug.LogError(e);
}
}
关闭横幅广告
/// <summary>
/// 关闭横幅广告
/// </summary>
public void CAll_D