Files
MinFt/Client/Assets/Scripts/Services/DevAdsService.cs
2026-04-27 12:07:32 +08:00

32 lines
706 B
C#

using asap.core;
namespace game
{
public class DevAdsService : IAdsService
{
public void Init()
{
}
public void Release()
{
}
public void ShowRewarded(AdvertPopupType advertPopupType = AdvertPopupType.Shop)
{
#if UNITY_EDITOR
GContext.Publish(new AdsResult() { Result = 0, Type = advertPopupType });
#else
GContext.Publish(new AdsResult() { Result = 1, Type = advertPopupType });
#endif
}
public void ShowInterstitial(AdvertPopupType advertPopupType = AdvertPopupType.Shop)
{
GContext.Publish(new AdsInterstitialResult() { Type = advertPopupType });
}
}
}