Session quitting

This commit is contained in:
Rendo 2025-12-08 14:58:25 +05:00
commit 4dce5bd4ca
7 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,10 @@
extends Node
func _ready() -> void:
Session.session_ended.connect(destroy_level)
func destroy_level() -> void:
for child in get_children():
if child is MultiplayerSpawner:
continue
child.queue_free()