private static void HandleAcceptMessage(NetworkMessage msg) { MsgAccept accept = msg as MsgAccept; WriteLine("Received Accept Message PlayerID is " + accept.PlayerID.ToString()); PlayerID = accept.PlayerID; UDPRequestSent = true; // start UDP Link client.ConnectToUDP(); client.SendMessage(false, new MsgUDPLinkRequest(PlayerID)); WriteLine("Sent UDP Link request via UDP"); }