예제 #1
0
        public void ShowLosePopup(double gold)
        {
            m_Win     = false;
            AwardGold = gold;
            Global.gApp.gUiMgr.OpenPanel(Wndid.FightLosePanel);
            FightLose panel = Global.gApp.gUiMgr.GetPanelCompent <FightLose>(Wndid.FightLosePanel);

            //panel.OnClose += ShowResultPopup;
            panel.OnClose += () =>
            {
                Global.gApp.gGameCtrl.ChangeToMainScene(2);
            };
        }
예제 #2
0
        public override void GameLose()
        {
            if (m_Ended)
            {
                return;
            }
            Pause();
            m_Ended = true;
            FightResultManager.instance.SetFightState(FightResultManager.FightState.FAIL);
            Global.gApp.gUiMgr.ClosePanel(Wndid.FightPanel);
            Global.gApp.gUiMgr.OpenPanel(Wndid.FightLosePanel);
            FightLose panel = Global.gApp.gUiMgr.GetPanelCompent <FightLose>(Wndid.FightLosePanel);

            panel.OnClose += () =>
            {
                Global.gApp.gGameCtrl.ChangeToMainScene(3);
            };
        }