Exemplo n.º 1
0
 public override void ClientConnect(string address)
 {
     clientAddress = address;
     ConnectWriter.Reset();
     GetConnectData(ConnectWriter);
     LiteNetLib4MirrorClient.ConnectClient(ConnectWriter);
 }
Exemplo n.º 2
0
        public override void ClientConnect(Uri uri)
        {
            if (uri.Scheme != Scheme)
            {
                throw new ArgumentException($"Invalid url {uri}, use {Scheme}://host:port instead", nameof(uri));
            }

            port          = uri.IsDefaultPort ? port : (ushort)uri.Port;
            clientAddress = uri.Host;

            ConnectWriter.Reset();
            GetConnectData(ConnectWriter);
            LiteNetLib4MirrorClient.ConnectClient(ConnectWriter);
        }
 public override void ClientConnect(string address)
 {
     clientAddress = address;
     LiteNetLib4MirrorClient.ConnectClient(GenerateCode());
 }