Added propper disconnect behaviour

This commit is contained in:
Sch1nken 2024-03-24 03:45:43 +01:00
parent c4909db2a5
commit 10066090b1
3 changed files with 22 additions and 0 deletions

View file

@ -28,6 +28,9 @@ func stop_webrtc() -> void:
ws_client.stop()
offline_mode()
func seal_webrtc() -> void:
ws_client.seal_lobby()
func start_webrtc_lobby() -> void:
if not multiplayer.multiplayer_peer is WebRTCMultiplayerPeer:
disconnect_all()