the_tower/game/player/Volume.gd

9 lines
158 B
GDScript3
Raw Normal View History

2020-06-11 12:23:35 +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)