summaryrefslogtreecommitdiff
path: root/stage/hud_main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'stage/hud_main.gd')
-rw-r--r--stage/hud_main.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/stage/hud_main.gd b/stage/hud_main.gd
index 2aea87e..b80b514 100644
--- a/stage/hud_main.gd
+++ b/stage/hud_main.gd
@@ -37,3 +37,13 @@ func _on_button_pressed() -> void:
grid_selector.current_state = grid_selector.state_cube_placement
)
get_tree().current_scene.process_mode = PROCESS_MODE_DISABLED
+
+
+func _on_button_2_pressed() -> void:
+ visible = false
+
+ Network.set_current_player(Network.player_order[
+ (Network.player_order.find(Network.current_player.id) + 1) % Network.player_order.size()
+ ])
+
+ grid_selector.process_mode = Node.PROCESS_MODE_INHERIT