fix: start game text & disconnect signal
This commit is contained in:
parent
3521732cd2
commit
0f5f1d466f
1 changed files with 2 additions and 1 deletions
3
main.gd
3
main.gd
|
|
@ -62,7 +62,6 @@ func _ready() -> void:
|
|||
func _on_disconnect_clicked():
|
||||
if (multiplayer.is_server()):
|
||||
server_discovery.disable_server()
|
||||
multiplayer.peer_connected.disconnect(_on_player_connected)
|
||||
for peer_id in multiplayer.get_peers():
|
||||
multiplayer.disconnect_peer(peer_id)
|
||||
|
||||
|
|
@ -119,6 +118,8 @@ func _on_host_pressed():
|
|||
|
||||
_on_connected_ok()
|
||||
|
||||
start_game_button.text = "Start Game (Not enough player)"
|
||||
|
||||
server_discovery.enable_server(active_port)
|
||||
|
||||
func is_port_available(port: int) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue