Skip to content

Commit

Permalink
Fix the "Example lobby implementation" section of the High-level mult…
Browse files Browse the repository at this point in the history
…iplayer tutorial

Correct both the GDScript and C# code examples in the "Example lobby implementation" section of the Networking/High-level multiplayer tutorial.
  • Loading branch information
mateuseap committed Jan 7, 2025
1 parent 5639d1a commit d0e6217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutorials/networking/high_level_multiplayer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ have loaded the game scene.

func remove_multiplayer_peer():
multiplayer.multiplayer_peer = null
players.clear()


# When the server decides to start the game from a UI scene,
Expand Down Expand Up @@ -550,6 +551,7 @@ have loaded the game scene.
private void RemoveMultiplayerPeer()
{
Multiplayer.MultiplayerPeer = null;
_players.Clear();
}

// When the server decides to start the game from a UI scene,
Expand Down

0 comments on commit d0e6217

Please sign in to comment.