屏蔽广告
This commit is contained in:
parent
16b58fa21c
commit
2ed0af529a
@ -268,6 +268,9 @@ end
|
|||||||
|
|
||||||
--- 广告
|
--- 广告
|
||||||
function SDKManager:isAdLoaded()
|
function SDKManager:isAdLoaded()
|
||||||
|
if true then
|
||||||
|
return true
|
||||||
|
end
|
||||||
if VersionCompatible:getIsPackageRUHW() then
|
if VersionCompatible:getIsPackageRUHW() then
|
||||||
if CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.Android then
|
if CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.Android then
|
||||||
return CS.BF.BFMain.Instance.SDKMgr.BFHWAdSDKMgr.AdLoaded
|
return CS.BF.BFMain.Instance.SDKMgr.BFHWAdSDKMgr.AdLoaded
|
||||||
@ -414,6 +417,13 @@ function SDKManager:_showFullScreenAds(adsClickType, adCallback)
|
|||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
if true then
|
||||||
|
self:adRewradAd()
|
||||||
|
if adCallback then
|
||||||
|
adCallback()
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end
|
||||||
if VersionCompatible:getIsPackageRUHW() then
|
if VersionCompatible:getIsPackageRUHW() then
|
||||||
if not CS.BF.BFMain.Instance.SDKMgr.BFHWAdSDKMgr.AdLoaded then
|
if not CS.BF.BFMain.Instance.SDKMgr.BFHWAdSDKMgr.AdLoaded then
|
||||||
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.NO_ADS))
|
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.NO_ADS))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user