public void muteBGM(bool isMute) { _audioSources[PLAYER_BGM_1].volume = (isMute)?0.0f:BGM_VOLUME; _audioSources[PLAYER_BGM_2].volume = (isMute)?0.0f:BGM_VOLUME; if (isMute) { bgmFader.clear(); } }
public void muteSFX(bool isMute) { for (int i = 2; i < TOTAL_SOURCE; ++i) { _audioSources[i].volume = (isMute)?0.0f:SFX_VOLUME; } _audioSources[PLAYER_DIALOG_VOICE].volume = (isMute)?0.0f:VOICE_VOLUME; if (isMute) { chargingFader.clear(); loopingEffectFader.clear(); } }