private void OnDisconnection() { tcp = new TCPData(id); tcp.Disconnection += OnDisconnection; udp = new UDPData(id); GameData.Game.RemovePlayer(id); }
public Client(int id) { this.id = id; tcp = new TCPData(id); udp = new UDPData(id); tcp.Disconnection += OnDisconnection; }