summaryrefslogtreecommitdiff
path: root/main.gd
blob: 8c5a4761ffe3137c1c986de558c967670914a721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extends Control


func _ready() -> void:
	Network.current_player_changed.connect(_current_player_changed)


func _on_button_pressed() -> void:
	Network.host()


func _on_button_2_pressed() -> void:
	Network.join()


func _current_player_changed() -> void:
	get_tree().change_scene_to_file("res://stage/stage.tscn")