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