2024-07-29 22:14:19 +00:00
|
|
|
extends Area2D
|
|
|
|
|
|
|
|
@export var effect = "alert"
|
|
|
|
signal areatrigger(effect, Object)
|
|
|
|
|
|
|
|
func _on_body_entered(body):
|
|
|
|
print("detected a body")
|
2024-08-13 01:10:32 +00:00
|
|
|
# Need to fix this part and see why it's not acknowledging the static body
|
|
|
|
# if body.get_collider() != StaticBody2D:
|
|
|
|
# areatrigger.emit(effect, body)
|