Esempio n. 1
0
        public override void GameWin()
        {
            if (m_Ended)
            {
                return;
            }
            m_Ended = true;
            // log
            FightResultManager.instance.KillProgress = 100;
            FightResultManager.instance.SetFightState(FightResultManager.FightState.SUCCESS);
            Global.gApp.gUiMgr.ClosePanel(Wndid.FightPanel);
            GetMainPlayerComp().GetPlayerData().ResetProtectTime(-100000);
            Global.gApp.gUiMgr.OpenPanel(Wndid.FightWinPanel);
            FightWin panel = Global.gApp.gUiMgr.GetPanelCompent <FightWin>(Wndid.FightWinPanel);

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

            //CampTaskMgr.singleton.AddTaskData(TaskType.Finish_Battle, 1);
        }
Esempio n. 2
0
        public void ShowWinPopup(double gold)
        {
            m_Win     = true;
            AwardGold = gold;
            Global.gApp.gUiMgr.OpenPanel(Wndid.FightWinPanel);
            FightWin panel = Global.gApp.gUiMgr.GetPanelCompent <FightWin>(Wndid.FightWinPanel);

            panel.OnClose += () =>
            {
                ShowResultPopup();

                //弹出app评分
                //if (Global.gApp.gSystemMgr.GetPassMgr().GetPassSerial() ==
                //    int.Parse(Global.gApp.gGameData.GeneralConfigData.Get(GeneralConfigConstVal.PULL_UP_APP_REVIEW_STAGE).content) + 1)
                //{
                //    //#if UNITY_IPHONE
                //    //            //sdk
                //    //                SdkdsNativeUtil.Instance.pullupAppReview();
                //    //#else
                //    Global.gApp.gUiMgr.OpenPanel(Wndid.EvaluateUI);
                //    //#endif
                //}
            };
        }