public void RefreshLayerVolumes() { for (int i = 0; i < 6; i++) { AudioLayer audioLayer = channelDictionary[GetChannelByTypeChannel(AudioType.BGM, i)]; audioLayer.SetBaseVolume(BGMVolume * GlobalVolume); } for (int j = 0; j < 8; j++) { AudioLayer audioLayer2 = channelDictionary[GetChannelByTypeChannel(AudioType.Voice, j)]; audioLayer2.SetBaseVolume(VoiceVolume * GlobalVolume); } for (int k = 0; k < 8; k++) { AudioLayer audioLayer3 = channelDictionary[GetChannelByTypeChannel(AudioType.SE, k)]; audioLayer3.SetBaseVolume(SoundVolume * GlobalVolume); } for (int l = 0; l < 2; l++) { AudioLayer audioLayer4 = channelDictionary[GetChannelByTypeChannel(AudioType.System, l)]; audioLayer4.SetBaseVolume(SystemVolume * GlobalVolume); } }