This commit is contained in:
2026-07-15 14:24:29 +08:00
parent b4fc8e6ee8
commit bcfb244b0f
46 changed files with 3659 additions and 294 deletions
@@ -125,7 +125,7 @@ namespace ScrewsMaster
public static void ShowInterstitial(string key)
{
#if !UNITY_EDITOR
#if !UNITY_EDITOR
//if(Random.Range(0, 100)>ConfigSystem.GetConfig<CommonModel>().interstitialtype) return;
MaxADKit.ShowInterstitial(key, isSuccess =>
{
@@ -1100,18 +1100,27 @@ namespace ScrewsMaster
public static void AddInterAdNumber()
{
look_interad_numbers++;
if (IsGiftSwitch() && !SaveData.GetSaveobject().is_get_removead && look_interad_numbers >= ConfigSystem.GetConfig<CommonModel>().playtimes)
if (IsGiftSwitch() && look_interad_numbers >= ConfigSystem.GetConfig<CommonModel>().playtimes)
{
look_interad_numbers = 0;
if (Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().interstitialtype)
{
if (UIManager.Instance.IsExistUI(UIConst.H5UI))
GameHelper.ShowInterstitial("interstitial_h5reward");
else
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AdcomingUI_Open);
GameHelper.ShowInterstitial("interstitial_h5reward");
}
}
// if (IsGiftSwitch() && !SaveData.GetSaveobject().is_get_removead && look_interad_numbers >= ConfigSystem.GetConfig<CommonModel>().playtimes)
// {
// look_interad_numbers = 0;
// if (Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().interstitialtype)
// {
// if (UIManager.Instance.IsExistUI(UIConst.H5UI))
// GameHelper.ShowInterstitial("interstitial_h5reward");
// else
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AdcomingUI_Open);
// }
// }
}
public static Dictionary<string, bool> statusDic = new Dictionary<string, bool>();
@@ -1321,7 +1330,7 @@ namespace ScrewsMaster
{
isAd = false;
}
return true;//zhushi
return true;//zhushi
// return false;//zhushi
return isAd;
}
@@ -1346,7 +1355,7 @@ namespace ScrewsMaster
m_gameTimes = 0;
PlayerPrefs.SetInt("game_times", m_gameTimes);
Debug.Log("fasongshichang");
Debug.Log("fasongshichang");
NetworkKit.PostWithHeader<RespGameTimeEventData>("event/gameTime", respData, (isSuccess, obj) =>
{
Debug.Log($"PlayGameTimeEvent==== {m_gameTimes}");