public bool Connect(int port, int playerId) { if (Connected) { return(false); } kcp = new KcpOnUdp(TcpClientProxy.Ins.server.Address.ToString(), port, playerId, this); kcp.Connect(TcpClientProxy.Ins.server.Address.ToString(), port); Connected = true; return(true); }
public void handleClose(KcpOnUdp kcp, int errorCode) { }