immersive-home/content/ui/button/button.gd

10 lines
206 B
GDScript3
Raw Normal View History

2023-11-11 19:17:25 +02:00
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")