freeftf/scripts/create.gd
2024-08-02 20:13:42 +02:00

10 lines
242 B
GDScript

extends Control
func _ready():
Server.create_game()
func _on_start_pressed():
Server.send_playerinfo(get_tree().root.get_node("create/player_customization/name").text, multiplayer.get_unique_id())
Server.start_game.rpc(Server.players)