public AudioSource GetSourceWorld() { foreach (AudioSource item in sourcesWorld) { if (!item.isPlaying) { SoundFilterUtility.DisableAllFiltersOn(item); return(item); } } return(null); }
public AudioSource GetSourceWorld() { foreach (AudioSource current in this.sourcesWorld) { if (!current.isPlaying) { SoundFilterUtility.DisableAllFiltersOn(current); return(current); } } return(null); }
public AudioSource GetSourceWorld() { foreach (AudioSource audioSource in this.sourcesWorld) { if (!audioSource.isPlaying) { SoundFilterUtility.DisableAllFiltersOn(audioSource); return(audioSource); } } return(null); }
public AudioSource GetSourceCamera() { for (int i = 0; i < this.sourcesCamera.Count; i++) { AudioSource audioSource = this.sourcesCamera[i]; if (!audioSource.isPlaying) { audioSource.clip = null; SoundFilterUtility.DisableAllFiltersOn(audioSource); return(audioSource); } } return(null); }