Files
SpaceBots/.svn/pristine/71/715de6a928752f656aef23ad64e130d41054b80f.svn-base

15 lines
303 B
Plaintext
Raw Normal View History

2026-01-21 23:51:53 +01:00
extends Timer
class_name ButtonLogicImpulse
@export var interactBox: InteractBox
signal onPressed
func _ready() -> void:
interactBox.interactedWith.connect(onInteraction)
one_shot = true
func onInteraction(_playerReference: PlayerCharacter) -> void:
if is_stopped():
onPressed.emit()
start()