Procházet zdrojové kódy

fixed variable name

Enhex před 6 roky
rodič
revize
a819cb9d45
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tutorials/networking/high_level_multiplayer.rst

+ 1 - 1
tutorials/networking/high_level_multiplayer.rst

@@ -199,7 +199,7 @@ Let's get back to the lobby. Imagine that each player that connects to the serve
 
 
     func _player_connected(id):
     func _player_connected(id):
         # Called on both clients and server when a peer connects. Send my info to it.
         # Called on both clients and server when a peer connects. Send my info to it.
-        rpc_id(id, "register_player", player_name)
+        rpc_id(id, "register_player", my_info)
 
 
     func _player_disconnected(id):
     func _player_disconnected(id):
         player_info.erase(id) # Erase player from info.
         player_info.erase(id) # Erase player from info.