Files
project-thought-experiment/scripts/interactables/completer/button_stand.gd
2024-01-19 22:17:44 +01:00

11 lines
252 B
GDScript

extends Completer
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _on_interaction_area_interacted():
animation_player.play("press")
toggle_complete()
if one_shot:
await animation_player.animation_finished
$Button.hide()