public override void DoAwake(IServiceContainer services)
 {
     _netProxyRoom  = new BaseNetProxy((int)EMsgCS.EnumCount);
     _netProxyLobby = new BaseNetProxy((int)EMsgCL.EnumCount);
     _eventRegisterService.RegisterEvent <EMsgCL, NetMsgHandler>("OnMsg_L2C", "OnMsg_".Length,
                                                                 RegisterMsgHandler);
     _eventRegisterService.RegisterEvent <EMsgCS, NetMsgHandler>("OnMsg_S2C", "OnMsg_".Length,
                                                                 RegisterMsgHandler);
     InitLobby(ServerIp, ServerPort, ClientKey);
 }
 public override void DoAwake(IServiceContainer services)
 {
     _netProxyRoom  = new BaseNetProxy((int)EMsgCS.EnumCount);
     _netProxyLobby = new BaseNetProxy((int)EMsgCL.EnumCount);
     _eventRegisterService.RegisterManagersEvent <EMsgCL, NetMsgHandler>("OnMsg_L2C", "OnMsg_".Length,
                                                                         RegisterMsgHandler);
     _eventRegisterService.RegisterManagersEvent <EMsgCS, NetMsgHandler>("OnMsg_S2C", "OnMsg_".Length,
                                                                         RegisterMsgHandler);
     //Editor mode don't need network
     if (_constStateService.IsVideoMode)
     {
         return;
     }
     InitLobby(ServerIp, ServerPort, NetworkDefine.NetKey);
 }