9 lines
175 B
GDScript
9 lines
175 B
GDScript
extends Area2D
|
|
|
|
@export var effect = "alert"
|
|
signal areatrigger(effect, Object)
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("sprite"):
|
|
areatrigger.emit(effect, body)
|