修改bug
This commit is contained in:
@@ -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(() =>
|
||||
@@ -203,7 +215,7 @@ namespace ScrewsMaster
|
||||
if (success)
|
||||
{
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.use_prop, type);
|
||||
// GameHelper.AddAdWatchCount(-_payBoxPrice);
|
||||
// GameHelper.AddAdWatchCount(-_payBoxPrice);
|
||||
SetButtonsTouchable(false);
|
||||
CtrlCloseUI();
|
||||
ShowScrews.Instance.ShowToast("Successfully used the props");
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user