public static bool JoinLobby(TypedLobby typedLobby) { if (connected && Server == ServerConnection.MasterServer) { if (typedLobby == null) { typedLobby = TypedLobby.Default; } bool flag = networkingPeer.OpJoinLobby(typedLobby); if (flag) { networkingPeer.lobby = typedLobby; } return(flag); } return(false); }
public static bool JoinLobby(TypedLobby typedLobby) { bool flag; if (!connected || (Server != ServerConnection.MasterServer)) { return(false); } if (typedLobby == null) { typedLobby = TypedLobby.Default; } if (flag = networkingPeer.OpJoinLobby(typedLobby)) { networkingPeer.lobby = typedLobby; } return(flag); }