static private void CheckIfMuteAudio() { EditorSoundData __soundData = Resources.Load("VoxSoundData/VoxSoundSavedData") as EditorSoundData; if (__soundData != null) { if (__soundData.enableSoundInEditor == false) { AudioListener.volume = 0; } } }
/// <summary> /// Handles the logic required in the inicialization of the instance. /// </summary> static private SoundModule InstanceInitialize() { SoundModule __instance = new SoundModule(); __instance.InitializeLayers(); __instance.InitializeAudioSources(); __instance.InitializeAudioModels(); ModuleCore.instance.AddModule(__instance); EditorSoundData _soundData = (EditorSoundData)Resources.Load("VoxSoundData/VoxSoundSavedData"); __instance.listAudioMixers = _soundData.mixersList; return(__instance); }