diff options
Diffstat (limited to 'scripts/movement.gd')
-rw-r--r-- | scripts/movement.gd | 5 |
1 files changed, 4 insertions, 1 deletions
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() |