mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-24 05:37:15 +01:00
16cc3efb43
Fixes #45
17 lines
271 B
GDScript
17 lines
271 B
GDScript
extends Node2D
|
|
|
|
|
|
func load_demo(scene_path: String) -> void:
|
|
if not scene_path:
|
|
return
|
|
|
|
var demo = load(scene_path)
|
|
if demo:
|
|
add_child(demo.instance())
|
|
|
|
|
|
func unload() -> void:
|
|
for node in get_children():
|
|
call_deferred("remove_child", node)
|
|
node.queue_free()
|