Session quitting
This commit is contained in:
parent
2705959bfd
commit
4dce5bd4ca
7 changed files with 48 additions and 2 deletions
|
|
@ -155,6 +155,15 @@ func end_session() -> void:
|
|||
|
||||
session_started_flag = false
|
||||
|
||||
func quit_session() -> void:
|
||||
if multiplayer.is_server():
|
||||
end_session()
|
||||
else:
|
||||
session_ended.emit()
|
||||
session_started_flag = false
|
||||
Lobby.leave()
|
||||
|
||||
|
||||
@rpc("authority","call_remote","reliable")
|
||||
func start_round() -> void:
|
||||
if not is_server_request():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue