24 lines
456 B
C#
24 lines
456 B
C#
using asap.core;
|
|
|
|
namespace game
|
|
{
|
|
public class DevAdsService : IAdsService
|
|
{
|
|
public void Init()
|
|
{
|
|
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|