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 }