提交
This commit is contained in:
@@ -79,11 +79,12 @@ namespace ScrewsMaster
|
||||
is_first_login_go_to_h5 = false;
|
||||
GameHelper.is_first_login = loginModel.new_player;
|
||||
|
||||
if (GameHelper.IsGiftSwitch() && !loginModel.new_player && is_first_login_go_to_h5)
|
||||
{
|
||||
GotoH5();
|
||||
}
|
||||
else if (GameHelper.IsGiftSwitch() && loginModel.new_player)
|
||||
// if (GameHelper.IsGiftSwitch() && !loginModel.new_player && is_first_login_go_to_h5)
|
||||
// {
|
||||
// GotoH5();
|
||||
// }
|
||||
// else
|
||||
if (loginModel.new_player)
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.FirstRewardUI_Open);
|
||||
loginModel.new_player = false;
|
||||
|
||||
@@ -139,13 +139,19 @@ namespace ScrewsMaster
|
||||
ui.btn_cash.SetClick(() =>
|
||||
{
|
||||
|
||||
if (UIManager.Instance.IsExistUI(UIConst.SheepPlayUI))
|
||||
{
|
||||
CtrlCloseUI();
|
||||
}
|
||||
else
|
||||
{
|
||||
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.GameHomeUI_Close);
|
||||
}
|
||||
|
||||
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.GameHomeUI_Close);
|
||||
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuygoldUI_Open, false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user