예제 #1
0
        public override void OnStateEnter()
        {
            Singleton <CResourceManager> .GetInstance().UnloadUnusedAssets();

            Singleton <CUILoadingSystem> .get_instance().ShowLoading();

            Singleton <CSoundManager> .GetInstance().PostEvent("Login_Stop", null);

            Singleton <CSoundManager> .GetInstance().PostEvent("Play_Hall_Ending", null);

            SLevelContext curLvelContext = Singleton <BattleLogic> .get_instance().GetCurLvelContext();

            string text = (curLvelContext == null) ? string.Empty : curLvelContext.m_musicBankResName;

            if (text != this.LastLevelBank && !string.IsNullOrEmpty(this.LastLevelBank))
            {
                Singleton <CSoundManager> .get_instance().UnLoadBank(this.LastLevelBank, CSoundManager.BankType.LevelMusic);
            }
            if (!string.IsNullOrEmpty(text))
            {
                this.LastLevelBank = text;
                Singleton <CSoundManager> .get_instance().LoadBank(text, CSoundManager.BankType.LevelMusic);
            }
            CUICommonSystem.OpenFps();
        }
예제 #2
0
        private void OnLobbySceneCompleted()
        {
            Singleton <GameLogic> .GetInstance().OpenLobby();

            CUICommonSystem.OpenFps();
            Singleton <CUIParticleSystem> .GetInstance().Open();

            Singleton <CChatController> .GetInstance().SetChatTimerEnable(true);
        }
예제 #3
0
        public override void OnStateEnter()
        {
            this.m_originalBlendWeight = QualitySettings.blendWeights;
            if (GameSettings.RenderQuality == SGameRenderQuality.Low)
            {
                QualitySettings.blendWeights = BlendWeights.OneBone;
            }
            else
            {
                QualitySettings.blendWeights = BlendWeights.TwoBones;
            }
            SLevelContext curLvelContext = Singleton <BattleLogic> .get_instance().GetCurLvelContext();

            string eventName = (curLvelContext == null || string.IsNullOrEmpty(curLvelContext.m_musicStartEvent)) ? "PVP01_Play" : curLvelContext.m_musicStartEvent;

            Singleton <CSoundManager> .GetInstance().PostEvent(eventName, null);

            string text = (curLvelContext == null) ? string.Empty : curLvelContext.m_ambientSoundEvent;

            if (!string.IsNullOrEmpty(text))
            {
                Singleton <CSoundManager> .get_instance().PostEvent(text, null);
            }
            CUICommonSystem.OpenFps();
            Singleton <CUIParticleSystem> .GetInstance().Open();

            CResourceManager.isBattleState = true;
            switch (Singleton <CNewbieAchieveSys> .GetInstance().trackFlag)
            {
            case CNewbieAchieveSys.TrackFlag.SINGLE_COMBAT_3V3_ENTER:
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(10, true, false);

                break;

            case CNewbieAchieveSys.TrackFlag.SINGLE_MATCH_3V3_ENTER:
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(11, true, false);

                break;

            case CNewbieAchieveSys.TrackFlag.PVE_1_1_1_Enter:
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(13, true, false);

                break;
            }
            if (curLvelContext.IsMobaModeWithOutGuide())
            {
                Singleton <CPlayerPvpHistoryController> .get_instance().StartBattle();
            }
            MonoSingleton <PandroaSys> .GetInstance().PausePandoraSys(true);
        }
예제 #4
0
        public override void OnStateEnter()
        {
            this.m_originalBlendWeight = QualitySettings.blendWeights;
            if (GameSettings.RenderQuality == SGameRenderQuality.Low)
            {
                QualitySettings.blendWeights = BlendWeights.OneBone;
            }
            else
            {
                QualitySettings.blendWeights = BlendWeights.TwoBones;
            }
            ActionManager.Instance.frameMode = true;
            SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

            string eventName = ((curLvelContext == null) || string.IsNullOrEmpty(curLvelContext.musicStartEvent)) ? "PVP01_Play" : curLvelContext.musicStartEvent;

            Singleton <CSoundManager> .GetInstance().PostEvent(eventName, null);

            string str2 = (curLvelContext == null) ? string.Empty : curLvelContext.ambientSoundEvent;

            if (!string.IsNullOrEmpty(str2))
            {
                Singleton <CSoundManager> .instance.PostEvent(str2, null);
            }
            CUICommonSystem.OpenFps();
            Singleton <CUIParticleSystem> .GetInstance().Open();

            CResourceManager.isBattleState = true;
            switch (Singleton <CNewbieAchieveSys> .GetInstance().trackFlag)
            {
            case CNewbieAchieveSys.TrackFlag.SINGLE_COMBAT_3V3_ENTER:
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(10, true);

                break;

            case CNewbieAchieveSys.TrackFlag.SINGLE_MATCH_3V3_ENTER:
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(11, true);

                break;

            case CNewbieAchieveSys.TrackFlag.PVE_1_1_1_Enter:
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(13, true);

                break;
            }
        }
예제 #5
0
        public override void OnStateEnter()
        {
            Singleton <CUILoadingSystem> .instance.ShowLoading();

            Singleton <CSoundManager> .GetInstance().PostEvent("Login_Stop", null);

            Singleton <CSoundManager> .GetInstance().PostEvent("Play_Hall_Ending", null);

            SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

            string str = (curLvelContext == null) ? string.Empty : curLvelContext.bankResName;

            if ((str != this.LastLevelBank) && !string.IsNullOrEmpty(this.LastLevelBank))
            {
                Singleton <CSoundManager> .instance.UnLoadBank(this.LastLevelBank, CSoundManager.BankType.LevelMusic);
            }
            if (!string.IsNullOrEmpty(str))
            {
                this.LastLevelBank = str;
                Singleton <CSoundManager> .instance.LoadBank(str, CSoundManager.BankType.LevelMusic);
            }
            CUICommonSystem.OpenFps();
        }