summaryrefslogtreecommitdiffstats
path: root/Detection.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Detection.gd')
-rw-r--r--Detection.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/Detection.gd b/Detection.gd
new file mode 100644
index 0000000..cde309b
--- /dev/null
+++ b/Detection.gd
@@ -0,0 +1,9 @@
+extends Area
+
+func _ready():
+ var radius = get_parent().detection_range
+ scale = Vector3(radius,1.0,radius)
+
+func _unhandled_key_input(_event):
+ if Input.is_action_just_pressed("toggle_radar"):
+ visible = !visible