5 lines
155 B
GDScript
5 lines
155 B
GDScript
class_name Audio
|
|
|
|
static func mute(enabled: bool):
|
|
var master_sound = AudioServer.get_bus_index("Master")
|
|
AudioServer.set_bus_mute(master_sound, enabled) |