From 90af765b430e3a75daa9b2b4d0343ae58ad5c33d Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Fri, 14 Jan 2022 00:06:52 +0100 Subject: secret work --- scripts/movement.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/movement.gd') diff --git a/scripts/movement.gd b/scripts/movement.gd index 587b338..fb9e7bd 100644 --- a/scripts/movement.gd +++ b/scripts/movement.gd @@ -28,10 +28,12 @@ var ptr : Node var _enemies : Node var sel = { - "type": "", + "type": "idle", "name": "" } +var highlight : Spatial + func _ready(): camera = $camera placer = $placer @@ -76,6 +78,7 @@ func selected_event (sel_name, sel_type): _gui.refresh(in_editor) if sel_type == "turrets": + for child in ptr.get_children(): child.queue_free(); var info = load_turrets.info[sel.name] var model = load_turrets.models[info.model_name] var instance_model = model.instance() -- cgit v1.2.3-54-g00ecf