This commit is contained in:
2026-07-17 10:36:35 +08:00
parent 019da1589d
commit 04f032203c
10 changed files with 195 additions and 222 deletions
@@ -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);
});