2024-02-27 23:21:44 +01:00

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)