public IEnumerator DestroyGroups(GameObject[] objects) { if (timer != null) { timer.runTimer = false; } foreach (GameObject obj in objects) { yield return(new WaitForSeconds(0.025f)); Destroy(obj); } if (isGauntlet == false) { Scoring.GameOver(); } else if (isGauntlet == true) { timer.runTimer = false; settings.ResetSpeed(reduce); Scoring.GauntletOver(); } }