10 lines
221 B
GDScript

extends Button
@export var hover: AudioStream
@export var click: AudioStream
func _ready():
assert(hover)
assert(click)
mouse_entered.connect(Audio.play_ui.bind(hover))
button_down.connect(Audio.play_ui.bind(click))