15 lines
413 B
GDScript3
15 lines
413 B
GDScript3
|
extends Control
|
||
|
|
||
|
|
||
|
|
||
|
func _on_join_pressed():
|
||
|
if $player_customization/name.text != "" or $player_customization/ip.text != "":
|
||
|
Server.join_game($player_customization/ip.text)
|
||
|
$player_customization/join.hide()
|
||
|
$player_customization/join.disabled = true
|
||
|
$player_customization/Timer.start()
|
||
|
|
||
|
|
||
|
func _on_timer_timeout():
|
||
|
Server.send_playerinfo.rpc($player_customization/name.text, multiplayer.get_unique_id())
|