fix:1、修复bug
This commit is contained in:
@@ -109,17 +109,12 @@ namespace RedHotRoast
|
||||
|
||||
public static void ShowInterstitial(string key)
|
||||
{
|
||||
if (GetVipPrivilege(Subscription.RemoveInterstitialAd.As<int>())) return;
|
||||
MaxADKit.ShowInterstitial(key, isSuccess =>
|
||||
{
|
||||
if (isSuccess)
|
||||
{
|
||||
SaveData.GetSaveObject().InterstitialPLayNum++;
|
||||
if (SaveData.GetSaveObject().InterstitialPLayNum >= GetCommonModel().RemoveADsPackPopup)
|
||||
{
|
||||
SaveData.GetSaveObject().InterstitialPLayNum = 0;
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LuckyPackUI_Open, true);
|
||||
}
|
||||
|
||||
SaveData.SaveDataFunc();
|
||||
CtrlDispatcher.Instance.Dispatch(CtrlMsg.WatchIntVideoFinish);
|
||||
|
||||
@@ -935,25 +930,24 @@ namespace RedHotRoast
|
||||
public static void addInterAdnumber()
|
||||
{
|
||||
|
||||
return;
|
||||
// return;
|
||||
|
||||
if (GetVipPrivilege(Subscription.RemoveInterstitialAd.As<int>())) return;
|
||||
// if (GetVipPrivilege(Subscription.RemoveInterstitialAd.As<int>())) return;
|
||||
look_interad_numbers++;
|
||||
Debug.Log($"[back hall]1 SaveData.GetSaveObject().is_get_removead=========={SaveData.GetSaveObject().is_get_removead} ");
|
||||
|
||||
if (!SaveData.GetSaveObject().is_get_removead && look_interad_numbers >= ConfigSystem.GetCommonConf().playtimes)
|
||||
{
|
||||
look_interad_numbers = 0;
|
||||
if (Random.Range(0, 100) < ConfigSystem.GetCommonConf().interstitialtype)
|
||||
{
|
||||
if (UIManager.Instance.IsExistUI(UIConst.H5UI))
|
||||
{
|
||||
GameHelper.ShowInterstitial("interstitial_gameend");
|
||||
}
|
||||
else
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AdcomingUI_Open);
|
||||
}
|
||||
// if (UIManager.Instance.IsExistUI(UIConst.H5UI))
|
||||
// {
|
||||
ShowInterstitial("interstitial_gameend");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AdcomingUI_Open);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user