Ejemplo n.º 1
0
 /// <summary>
 /// 尝试连接指定IP的游戏服务器 by吴江
 /// </summary>
 /// <param name="_ip"></param>
 public void C2S_ConectGameServer()
 {
     curConnectServerType = ConnectServerType.Game;
     NetMsgMng.ConectServer(Login_IP, Login_port);
     if (!GameCenter.instance.IsReConnecteding)
     {
         GameCenter.instance.GoWaitConnect();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 尝试连接指定IP的排队服务器 by吴江
 /// </summary>
 /// <param name="_ip"></param>
 public void C2S_ConectQueueServer(string _ip, int _port)
 {
     GameCenter.msgLoackingMng.CleanSerializeList();
     LoginInSerlizeID      = 0;
     isActiveDisconnection = false;
     curConnectServerType  = ConnectServerType.Queue;
     Quaue_IP   = _ip;
     Quaue_port = _port;
     NetMsgMng.ConectServer(Quaue_IP, Quaue_port);
     if (!GameCenter.instance.IsReConnecteding)
     {
         GameCenter.instance.GoWaitConnect();
     }
 }