mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-14 04:57:19 +01:00
8e04378b1c
Improve the UI styles Add a button to go back to the demo picker Simplify the code that handles text
17 lines
254 B
GDScript
17 lines
254 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():
|
|
remove_child(node)
|
|
node.queue_free()
|