25 lines
567 B
C#
25 lines
567 B
C#
|
using System;
|
||
|
|
||
|
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.GetReward?.Invoke();
|
||
|
Log.Debug("NullAdsSDK.ShowReward");
|
||
|
}
|
||
|
}
|