public static DirectConnection Connect(IGame game) { var connection = new DirectConnection(); game.Connect(connection); if (connection.m_remoteConnection == null) throw new Exception(); return connection; } }