You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
extends Node3D
|
|
|
|
@onready var area_3d: Area3D = $Area3D
|
|
|
|
signal interacted
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
if event.is_action("interact") && event.is_pressed() && area_3d.has_overlapping_bodies():
|
|
interacted.emit()
|