16 lines
301 B
GDScript
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
|