the_tower_pandemonium/game/player/Volume.gd

9 lines
158 B
GDScript3
Raw Normal View History

2022-10-01 12:52:55 +02:00
extends HSlider
func _ready():
connect("value_changed", self, "on_value_changed")
func on_value_changed(value):
AudioServer.set_bus_volume_db(0, value)