summaryrefslogtreecommitdiff
path: root/UI
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-25 20:43:51 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-25 20:43:51 +0100
commit2a5d745c68f11131fb1b27ec42a30ecd6dc5da1d (patch)
tree0c6377bbe992236e397f590f4418fe1337593c69 /UI
parent809024f80576c191fd1154e4d7950fbedb05baff (diff)
fix networkingv2.1.2
Diffstat (limited to 'UI')
-rw-r--r--UI/CharacterSelect.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/UI/CharacterSelect.gd b/UI/CharacterSelect.gd
index 348ef22..96b228c 100644
--- a/UI/CharacterSelect.gd
+++ b/UI/CharacterSelect.gd
@@ -49,4 +49,8 @@ func _button_pressed(event, character):
func _on_start_button_pressed():
+ rpc("_start_game")
+
+
+@rpc("any_peer", "call_local") func _start_game():
get_tree().change_scene_to_file("res://UI/LevelSelect.tscn")