internal void StartGame(UdpWrapper <GamePacket> connection) { if (_connection != null) { _connection.Dispose(); } _connection = connection; _match = new Match(); _match.MatchFinishedEvent += OnMatchFinishedEvent; }
public void Dispose() { UdpWrapper?.Dispose(); }