Connect to server from client in RPC example
@@ -32,6 +32,8 @@ impl ServerPuppet {
let tree = owner.get_tree().expect("could not retreive SceneTree");
let tree = unsafe { tree.assume_safe() };
+ tree.set_network_peer(peer);
+
tree.connect(
"connected_to_server",
owner,
