Skip to content

Commit

Permalink
Merge pull request #10481 from mateuseap/fix/high_level_multiplayer
Browse files Browse the repository at this point in the history
Fix the "Example lobby implementation" section of the High-level multiplayer tutorial
  • Loading branch information
mhilbrunner authored Jan 8, 2025
2 parents 6f2ea9d + d0e6217 commit d8fecf7
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 d8fecf7

Please sign in to comment.