immersive-home/content/ui/button/button.gd
2023-11-11 18:17:25 +01:00

10 lines
206 B
GDScript

extends StaticBody3D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _on_press_down(_event):
animation_player.play("down")
func _on_press_up(_event):
animation_player.play("up")