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