Exemplo n.º 1
0
        public void Init()
        {
            JsonMessageDispatcher.Init();
            NetWorkMessageInit();

            m_IsWaitStart = true;
            m_IsLogged    = false;
            m_LastReceiveHeartbeatTime = 0;
        }
Exemplo n.º 2
0
        public void Init()
        {
            GfxSystem.EventChannelForLogic.Subscribe <string, string, string>("ge_login_lobby", "lobby", LoginLobby);
            GfxSystem.EventChannelForLogic.Subscribe <int>("ge_select_scene", "lobby", SelectScene);
            GfxSystem.EventChannelForLogic.Subscribe <int>("ge_select_hero", "lobby", SelectHero);
            GfxSystem.EventChannelForLogic.Subscribe("ge_start_game", "lobby", StartGame);

            JsonMessageDispatcher.Init();
            InitMessageHandler();

            m_IsWaitStart = true;
            m_IsLogged    = false;
        }