AdsUtils
This commit is contained in:
parent
f89cffb684
commit
b41b2c493e
|
@ -74,39 +74,25 @@ public static class AdsUtils
|
|||
|
||||
public static void PlayReward(TKGRVPositionName pAdPos, Action pSuccessCallback = null)
|
||||
{
|
||||
if (TKGSDKManager.Instance.IsReadyRewardAd())
|
||||
TKGSDKManager.Instance.ShowRewardAd(pAdPos, (pResult) =>
|
||||
{
|
||||
TKGSDKManager.Instance.ShowRewardAd(pAdPos, (pResult) =>
|
||||
if (pResult)
|
||||
{
|
||||
if (pResult)
|
||||
{
|
||||
pSuccessCallback?.Invoke();
|
||||
MMOModule.Instance.WatchRVSuccessfully();
|
||||
}
|
||||
}, UIUtils.ShowNoAdsTip);
|
||||
}
|
||||
else
|
||||
{
|
||||
UIUtils.ShowNoAdsTip();
|
||||
}
|
||||
pSuccessCallback?.Invoke();
|
||||
MMOModule.Instance.WatchRVSuccessfully();
|
||||
}
|
||||
}, UIUtils.ShowNoAdsTip);
|
||||
}
|
||||
|
||||
public static void PlayReward(TKGRVPositionName pAdPos, Action<bool> pResultCallback = null)
|
||||
{
|
||||
if (TKGSDKManager.Instance.IsReadyRewardAd())
|
||||
TKGSDKManager.Instance.ShowRewardAd(pAdPos, (pResult) =>
|
||||
{
|
||||
TKGSDKManager.Instance.ShowRewardAd(pAdPos, (pResult) =>
|
||||
pResultCallback?.Invoke(pResult);
|
||||
if (pResult)
|
||||
{
|
||||
pResultCallback?.Invoke(pResult);
|
||||
if (pResult)
|
||||
{
|
||||
MMOModule.Instance.WatchRVSuccessfully();
|
||||
}
|
||||
}, UIUtils.ShowNoAdsTip);
|
||||
}
|
||||
else
|
||||
{
|
||||
UIUtils.ShowNoAdsTip();
|
||||
}
|
||||
MMOModule.Instance.WatchRVSuccessfully();
|
||||
}
|
||||
}, UIUtils.ShowNoAdsTip);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue