SamsonGame/Assets/Scripts/Managers/mediation/NullAdsSDK.cs

36 lines
706 B
C#
Raw Permalink Normal View History

2021-12-29 20:50:11 +03:00
using System;
namespace RND
{
public class NullAdsSDK : IAdsSDK
{
public string BannerUnit { get; }
public string InterstitialUnit { get; }
public string RewardUnit { get; }
public string SdkKey { get; }
public void Init(Action callback)
{
callback.Invoke();
}
public bool HasRewardVideo() => true;
public bool HasInterstitialVideo() => false;
public void ShowBanner()
{
}
public void ShowInterstitial()
{
}
public void ShowReward()
{
Ads.RewardReceived?.Invoke();
Log.Debug("NullAdsSDK.ShowReward");
}
}
}