修改bug
This commit is contained in:
@@ -10,6 +10,7 @@ using System.Text.RegularExpressions;
|
||||
using System.Linq;
|
||||
using AppsFlyerSDK;
|
||||
using static ScrewsMaster.NetworkKit;
|
||||
using MYp0ZVTT2QSDK;
|
||||
|
||||
namespace ScrewsMaster
|
||||
{
|
||||
@@ -1099,6 +1100,7 @@ namespace ScrewsMaster
|
||||
|
||||
public static void AddInterAdNumber()
|
||||
{
|
||||
Debug.Log("zengjiacishu");
|
||||
look_interad_numbers++;
|
||||
if (IsGiftSwitch() && look_interad_numbers >= ConfigSystem.GetConfig<CommonModel>().playtimes)
|
||||
{
|
||||
@@ -1106,7 +1108,7 @@ namespace ScrewsMaster
|
||||
|
||||
if (Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().interstitialtype)
|
||||
{
|
||||
GameHelper.ShowInterstitial("interstitial_h5reward");
|
||||
GameHelper.ShowInterstitial("interstitial_gameend");
|
||||
}
|
||||
}
|
||||
// if (IsGiftSwitch() && !SaveData.GetSaveobject().is_get_removead && look_interad_numbers >= ConfigSystem.GetConfig<CommonModel>().playtimes)
|
||||
|
||||
@@ -131,12 +131,24 @@ namespace ScrewsMaster
|
||||
// var addPrice = ConfigSystem.GetConfig<CommonModel>().Purchaseprops;
|
||||
// var mergePrice = ConfigSystem.GetConfig<CommonModel>().Purchaseprops;
|
||||
// var cleanPrice = ConfigSystem.GetConfig<CommonModel>().Purchaseprops;
|
||||
_payBoxPrice = (int)ConfigSystem.GetConfig<CommonModel>().addspace;
|
||||
|
||||
|
||||
if (type != 3)
|
||||
{
|
||||
_payBoxPrice = 1;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num == 1)
|
||||
{
|
||||
_payBoxPrice = (int)ConfigSystem.GetConfig<CommonModel>().addspace;
|
||||
}
|
||||
else
|
||||
{
|
||||
_payBoxPrice = (int)ConfigSystem.GetConfig<CommonModel>().addspace2;
|
||||
}
|
||||
}
|
||||
|
||||
// if (ui.btn_add is btn_revive btnAdd) btnAdd.txt_coin.text = addPrice.ToString();
|
||||
// ui.btn_add.onClick.Add(() =>
|
||||
@@ -242,7 +254,11 @@ namespace ScrewsMaster
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (num == 2 && !GameHelper.GetPayBox1())
|
||||
{
|
||||
GameHelper.ShowTips("Please unlock the first one");
|
||||
return;
|
||||
}
|
||||
if (GameHelper.CheckAdWatchCount(_payBoxPrice))
|
||||
{
|
||||
GameHelper.AddAdWatchCount(-_payBoxPrice);
|
||||
|
||||
@@ -138,8 +138,15 @@ namespace ScrewsMaster
|
||||
ui.btn_cash.title = "Go";
|
||||
ui.btn_cash.SetClick(() =>
|
||||
{
|
||||
|
||||
|
||||
var level = ShowScrews.Instance.gameMode == GameHome.Mode_difficult ? 1 : GameHelper.GetLevel(); ;
|
||||
ShowScrews.Instance.InitLogic(level);
|
||||
|
||||
AudioManager.Instance.PlayBGM(AudioConst.PlayingBg);
|
||||
CtrlCloseUI();
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuygoldUI_Open, false);
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.GameHomeUI_Close);
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuygoldUI_Open, false);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -473,8 +473,8 @@ namespace ScrewsMaster
|
||||
if (!GameHelper.IsGiftSwitch()) return;
|
||||
|
||||
var probability = GameHelper.GetCommonModel().Smallrewardsrate;
|
||||
var range = Random.Range(0, 101);
|
||||
if (range > probability) return;
|
||||
var range = Random.Range(0, 100);
|
||||
if (range >= probability) return;
|
||||
|
||||
reward_data temp = args as reward_data;
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -58,8 +58,8 @@ namespace SGame
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
var rewardRate = GameHelper.GetCommonModel().rewardrate;
|
||||
var range = Random.Range(0, 101);
|
||||
_isCashBox = range <= rewardRate;
|
||||
var range = Random.Range(0, 100);
|
||||
_isCashBox = range < rewardRate;
|
||||
|
||||
cashImg.gameObject.SetActive(_isCashBox);
|
||||
}
|
||||
|
||||
@@ -130,15 +130,15 @@ public class ShowScrews : MonoBehaviour, ICanvasRaycastFilter
|
||||
|
||||
|
||||
errorBtn.gameObject.SetActive(false);
|
||||
#if !JarvisRelease
|
||||
errorBtn.gameObject.SetActive(true);
|
||||
if (errorBtn == null) return;
|
||||
// #if !JarvisRelease
|
||||
// errorBtn.gameObject.SetActive(true);
|
||||
// if (errorBtn == null) return;
|
||||
|
||||
errorBtn.onClick.AddListener(() =>
|
||||
{
|
||||
GameHelper.SendErrorToServer("TestError 001", LogType.Error.ToString());
|
||||
});
|
||||
#endif
|
||||
// errorBtn.onClick.AddListener(() =>
|
||||
// {
|
||||
// GameHelper.SendErrorToServer("TestError 001", LogType.Error.ToString());
|
||||
// });
|
||||
// #endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user