private void ResetPausedSlots(ResourcePool <PoolableAudioSource> pool) { pool.ForEach(item => { if (item.IsPaused) { item.Stop(); } }); }
public void SetMusicVolume(float volume) { _musicVolume = volume; _musicChannel.ForEach(e => e.Volume = volume); }
public void SetEffectsVolume(float volume) { _effectsVolume = volume; _effectChannel.ForEach(e => e.Volume = volume); _uiChannel.ForEach(e => e.Volume = volume); }
private void Resume(ResourcePool <PoolableAudioSource> pool) { pool.ForEach(item => { item.Resume(); }); }