Exemplo n.º 1
0
        IEnumerator OnInitSceneSucced(SceneRootEntry sceneRoot)
        {
            LoadingLogic.AddCustomProgress(5);
            if (m_SceneRootEntry != null)
            {
                m_SceneRootEntry.ShowLevel();
            }
            SetShadowQuality(sceneRoot);
            SetLayerMask(sceneRoot);
            sceneRoot.SetZonesTag();
            sceneRoot.SetMainLight();
            LoadingLogic.AddCustomProgress(15);
            PSPoolManager.Instance.LoadStandardMainlandFX();
            yield return(new WaitUntil(() =>
            {
                LoadingLogic.AddCustomProgress(1);
                return HudLoadManager.Completed;
            }));

            GlobalMenuManager.PopCaches();
            MainLandLogic.GetInstance().FreshMapName();
            MainLandLogic.GetInstance().OnSceneViewLoaded();
            MainLandLogic.GetInstance().RobDartFight();
            GameEngine.Instance.IsRunFromEnterGameBtn = false;
            LoadingLogic.AddCustomProgress(5);
        }
Exemplo n.º 2
0
        public override void OnDestroy()
        {
            instance = null;
            s_cacheFrames.Clear();

            base.OnDestroy();
        }
Exemplo n.º 3
0
        public void SafeContinue() //playstate not get must resume
        {
            if (isFastCombat)      //快速战斗
            {
                if (controller != null)
                {
                    controller.Close();
                    DestroySelf();
                    controller.DestroyControllerForm();
                }

                if (_battleType == eBattleType.MainCampaignBattle)
                {
                    if (!LTInstanceMapModel.Instance.NotMainChapterId())
                    {
                        LTInstanceMapModel.Instance.RequestGetChapterState();
                        Hotfix_LT.Messenger.Raise(EventName.MainBattleQuick);
                    }
                }

                if (_battleType == eBattleType.HonorArena)
                {
                    GlobalMenuManager.PopCaches();
                }
                return;
            }
            string state = "";

            DataLookupsCache.Instance.SearchDataByID <string>("playstate.state", out state);
            if (string.IsNullOrEmpty(state) || state.CompareTo("Combat") == 0)
            {
                MainLandLogic.GetInstance().RequestCombatResumeToScene();
            }
            else
            {
                Continue();
            }
        }
Exemplo n.º 4
0
        public void OnItemClick(GameObject obj)
        {
            int index = int.Parse(obj.name);

            FusionAudio.PostEvent("UI/General/ButtonClick", true);
            GlobalMenuManager.Instance.CloseMenu("LTMainInstanceLampView");
            LTInstanceMapModel.Instance.RequestMainPray(index, delegate
            {
                //上传友盟获得钻石,主线
                FusionTelemetry.ItemsUmengCurrency(new List <LTShowItemData>()
                {
                    data
                }, "主线副本");
                GlobalMenuManager.Instance.Open("LTShowRewardView", new List <LTShowItemData>()
                {
                    data
                });

                LTInstanceMapModel.Instance.PrayPoint -= (int)Hotfix_LT.Data.NewGameConfigTemplateManager.Instance.GetGameConfigValue("prayPointCost");

                GlobalMenuManager.CurGridMap_MajorDataUpdateFunc();
                Hotfix_LT.Messenger.Raise(EventName.UpDatePraypointUI);
            });
        }
Exemplo n.º 5
0
 protected override void InitMap()
 {
     LTInstanceMapCtrl.EnterCallback = EnterCallback;
     LTInstanceMapCtrl.FloorDown     = FloorDown;
     GlobalMenuManager.CurGridMap_MajorDataUpdateFunc();
 }
Exemplo n.º 6
0
 public override void Awake()
 {
     base.Awake();
     InitUIMaxCount();
     instance = this;
 }