This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
magician/game_client.gd
T

16 lines
301 B
GDScript

class_name GameClient
extends Node
@export var web_client: WebClientTCP
var is_host: bool = false
func _on_start_game_button_pressed() -> void:
web_client.start_game()
func _on_create_lobby_button_pressed() -> void:
is_host = true
func _on_join_lobby_button_pressed() -> void:
is_host = false