提交
This commit is contained in:
@@ -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