GodotCourse/week2/updated_files/scripts/Trigger.gd

9 lines
168 B
GDScript3
Raw Permalink Normal View History

2024-07-15 21:33:43 +00:00
extends Area2D
@export var effect = "alert"
signal areatrigger(effect, Object)
func _on_body_entered(body):
print("detected a body")
areatrigger.emit(effect, body)