{
soundEmitters[i].Finish();
soundEmitters[i].OnSoundFinishedPlaying += OnSoundEmitterFinishedPlaying;
}
return isFound;
private void StopAndCleanEmitter(SoundEmitter soundEmitter)
if(soundEmitter.IsFinishing())
if (soundEmitter.IsFinishing())
soundEmitter.OnSoundFinishedPlaying -= OnSoundEmitterFinishedPlaying;
soundEmitter.Stop();