the_tower_pandemonium/game/player/Volume.gd
2022-10-01 12:52:55 +02:00

9 lines
158 B
GDScript

extends HSlider
func _ready():
connect("value_changed", self, "on_value_changed")
func on_value_changed(value):
AudioServer.set_bus_volume_db(0, value)