Ejemplo n.º 1
0
	public void ShowRewardAds()
	{
		if (unityAds.IsUnityRewardAdsReady())
		{
			unityAds.DisplayRewardedAds();
		}
		else if(admobAds.IsRewardedAdReady())
		{
			admobAds.ShowRewardedAd();
		}
	}
Ejemplo n.º 2
0
    public void ShowRewardedAds(string type)
    {
        this.rewardAdsType = type;
#if UNITY_WEBGL
        PlayAdsenseAds();
#else
        if (unityAdsManager.IsUnityRewardAdsReady())
        {
            Debug.Log("show unity reward ads =================================== ");

            unityAdsManager.DisplayRewardedAds();
        }
        else
        {
            Debug.Log("show admob reward ads =================================== ");

            admobManager.ShowRewardedAd();
        }
#endif
    }