mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2025-02-03 22:45:55 +01:00
Fix errors when unloading demos with DemoPlayer
This commit is contained in:
parent
f9b52fc24c
commit
04468a7d60
@ -12,5 +12,5 @@ func load_demo(scene_path: String) -> void:
|
|||||||
|
|
||||||
func unload() -> void:
|
func unload() -> void:
|
||||||
for node in get_children():
|
for node in get_children():
|
||||||
remove_child(node)
|
call_deferred("remove_child", node)
|
||||||
node.queue_free()
|
node.queue_free()
|
||||||
|
Loading…
Reference in New Issue
Block a user