9 lines
189 B
GDScript
9 lines
189 B
GDScript
class_name Button3D extends StaticBody3D
|
|
|
|
@onready var animation_player: AnimationPlayer = %AnimationPlayer
|
|
|
|
signal pressed
|
|
|
|
func press():
|
|
animation_player.play("pressed")
|
|
pressed.emit()
|