private IEnumerator RunDetection() { while (filtering) { if (mic.MicrophoneLevelMax() < 0f && mic.MicrophoneLevelMax() > -50f && !filterBusy) { InvokeRepeating("FiterAudio", 0f, timeBetweenChecks); } yield return(null); } }