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