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

            MonoSingleton <NewbieGuideManager> .GetInstance().CheckSkipIntoLobby();

            Singleton <CChatController> .GetInstance().bSendChat = true;

            Singleton <CChatController> .GetInstance().SubmitRefreshEvent();

            Singleton <ResourceLoader> .GetInstance().LoadScene("LobbyScene", new ResourceLoader.LoadCompletedDelegate(this.OnLobbySceneCompleted));

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

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

            Singleton <EventRouter> .GetInstance().BroadCastEvent(EventID.LOBBY_STATE_ENTER);

            if (!this.s_firstEnterd)
            {
                if (!NetworkAccelerator.enabled)
                {
                    NetworkAccelerator.SetNetAccConfig(false);
                }
                else if (NetworkAccelerator.IsAutoNetAccConfigOpen() || NetworkAccelerator.IsNetAccConfigOpen())
                {
                    NetworkAccelerator.SetNetAccConfig(true);
                }
                else
                {
                    NetworkAccelerator.SetNetAccConfig(false);
                }
            }
            MonoSingleton <PandroaSys> .GetInstance().PausePandoraSys(false);

            this.s_firstEnterd = true;
        }
 private static void OnEventTurnOn(CUIEvent uiEvent)
 {
     NetworkAccelerator.SetNetAccConfig(true);
     Singleton <ApolloHelper> .GetInstance().ApolloRepoertEvent("NetACCturnOK", null, true);
 }