Exemplo n.º 1
0
        private void Step2()
        {
            _battleIntroductionPopup.gameObject.Show();
            SetNpcHint(true, I18NManager.Get("Guide_MainLine2"));
            var startWorkBtn = _battleIntroductionPopup.Find("BtnContainer/StartWorkBtn");

            startWorkBtn.gameObject.Show();
            GuideArrow.DoAnimation(startWorkBtn);
            PointerClickListener.Get(startWorkBtn.gameObject)
            .onClick = go =>
            {
                GuideManager.SetStatisticsRemoteGuideStep(GuideConst.MainLineStep_OnClick_Battle1_4_StarBtn);
                LevelVo vo = GlobalData.LevelModel.FindLevel("1-4");
                EventDispatcher.TriggerEvent(EventConst.EnterBattle, 0, vo);
                PopupManager.CloseLastWindow();
            };
        }
Exemplo n.º 2
0
        private void ShowSweep2_11_Step2()
        {
            _battleIntroductionPopup.gameObject.Show();

            var playTimesBtn = _battleIntroductionPopup.Find("BtnContainer/PlayTimesBtn");

            playTimesBtn.gameObject.Show();
            GuideArrow.DoAnimation(playTimesBtn);
            PointerClickListener.Get(playTimesBtn.gameObject)
            .onClick = go =>
            {
                playTimesBtn.gameObject.Hide();

                GuideManager.SetStatisticsRemoteGuideStep(GuideConst.MainLineStep_OnClick_Battle2_11_Sweep);
                LevelVo vo = GlobalData.LevelModel.FindLevel("2-11");
                EventDispatcher.TriggerEvent(EventConst.EnterBattle, 5, vo);
                PopupManager.CloseLastWindow();

                GuideManager.SetRemoteGuideStep(GuideTypePB.MainGuide, GuideConst.MainLineStep_OnClick_Battle2_11_Sweep);
                //防止网络异常先模拟数据
                UserGuidePB userGuide = new UserGuidePB()
                {
                    GuideId   = GuideConst.MainStep_MainStory2_4_Fail,
                    GuideType = GuideTypePB.MainGuide
                };
                GuideManager.UpdateRemoteGuide(userGuide);

                ClientTimer.Instance.DelayCall(() =>
                {
                    SetNpcHint(true, I18NManager.Get("Guide_MainLine_Sweep"));

                    PointerClickListener.Get(transform.gameObject).onClick = o =>
                    {
                        PopupManager.CloseAllWindow();
                        ModuleManager.Instance.DestroyAllModuleBackToCommon();
                    };
                }, 1.6f);
            };
        }