Files
project-thought-experiment/scripts/interactables/button_stand.gd

7 lines
161 B
GDScript

extends StaticBody3D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _on_interaction_area_interacted():
animation_player.play("press")