string EnumToString(AudioSettings.MixerGroupType type) { return(Enum.GetName(typeof(AudioSettings.MixerGroupType), (int)type)); }
void _SetVolume(AudioSettings.MixerGroupType type, float value) { string name = EnumToString(type); audioMixer.SetFloat(name, value); }