done
This commit is contained in:
@@ -60,11 +60,22 @@ public class AdsManager : MonoBehaviour
|
||||
rewardedAd.OnUserEarnedReward += OnRewardedComplete;
|
||||
rewardedAd.OnAdFailedToLoad += OnRewardedFailed;
|
||||
rewardedAd.OnAdFailedToShow += OnRewardedFailed;
|
||||
interstitial.OnAdClosed += OnInterestitialClosed;
|
||||
// RequestBanner();
|
||||
LoadInterestitial();
|
||||
LoadRewarded();
|
||||
}
|
||||
|
||||
private static UnityEvent onInterestitialClosed = new UnityEvent();
|
||||
public static void AddOnInterestitialClosed(UnityAction e){
|
||||
if(onInterestitialClosed==null){onInterestitialClosed = new UnityEvent();}
|
||||
|
||||
onInterestitialClosed.AddListener(e);
|
||||
}
|
||||
|
||||
void OnInterestitialClosed(object sender, EventArgs args){
|
||||
onInterestitialClosed.Invoke();
|
||||
}
|
||||
|
||||
void RequestBanner(){
|
||||
bannerView = new BannerView(bannerId, AdSize.Banner, AdPosition.BottomLeft);
|
||||
|
||||
Reference in New Issue
Block a user