bug修改
This commit is contained in:
@@ -3,6 +3,7 @@ using DG.Tweening;
|
||||
using BingoBrain.Core;
|
||||
using FGUI.JRewardPop;
|
||||
using DontConfuse;
|
||||
using FGUI.ACommon;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
@@ -93,9 +94,10 @@ namespace BingoBrain
|
||||
|
||||
var isFree = model.rewardInfo.condition == RewardCondition.None;
|
||||
|
||||
if (ui.btn_collect is btn_collect btn_collect)
|
||||
if (ui.btn_collect is btn_green_vid btn_collect)
|
||||
{
|
||||
btn_collect.cont_state.selectedIndex = isFree ? btn_collect._State_free : btn_collect._State_video;
|
||||
btn_collect.cont_button.selectedIndex = isFree ? 0 : 1;
|
||||
if (!isFree && ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1) btn_collect.img_saveingpot.visible = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -103,16 +105,16 @@ namespace BingoBrain
|
||||
|
||||
// if (!isFree)
|
||||
// {
|
||||
DOVirtual.DelayedCall(2, () => { ui.btn_no.visible = true; });
|
||||
DOVirtual.DelayedCall(2, () => { ui.btn_no.visible = true; });
|
||||
|
||||
ui.btn_collect.SetClick(() =>
|
||||
{
|
||||
OnClickAdCollect(item.cashmultiple);
|
||||
});
|
||||
ui.btn_no.SetClick(() =>
|
||||
{
|
||||
OnClickCancel();
|
||||
});
|
||||
ui.btn_collect.SetClick(() =>
|
||||
{
|
||||
OnClickAdCollect(item.cashmultiple);
|
||||
});
|
||||
ui.btn_no.SetClick(() =>
|
||||
{
|
||||
OnClickCancel();
|
||||
});
|
||||
|
||||
// }
|
||||
// else
|
||||
@@ -144,7 +146,8 @@ namespace BingoBrain
|
||||
model.rewardInfo.GetRewardDataList()[0].value = model.rewardInfo.GetRewardDataList()[0].value / 10;
|
||||
UsaSystem.GetReward(model.rewardInfo);
|
||||
CtrlCloseUI();
|
||||
GameHelper.ShowInterstitial("interstitial_skipAd");
|
||||
// GameHelper.ShowInterstitial("interstitial_skipAd");
|
||||
GameHelper.addInterAdnumber();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user