summaryrefslogblamecommitdiffstats
path: root/Detection.gd
blob: cde309b3ed23173706120eaa6849f575749369bf (plain) (tree)
1
2
3
4
5
6
7
8
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