Exemplo n.º 1
0
        /// <summary>
        /// Disconnect the client from the server
        /// </summary>
        public void Disconnect()
        {
            Debug.Log($"{id} has disconnected");

            tcp.Disconnect();
            udp.Disconnect();

            ServerSender.SendDisconnect(id);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Disconnect the client from the server
        /// </summary>
        public void Disconnect()
        {
            Console.WriteLine($"{id} has disconnected");

            tcp.Disconnect();
            udp.Disconnect();

            ServerSender.SendDisconnect(id);
        }