IEnumerator ReactivateInActiveFruits() { while (_searching) { yield return(new WaitForSeconds(2f)); if (FruitsEaten.Count != 0) { Fruits _fruit = FruitsEaten [Random.Range(0, FruitsEaten.Count)]; FruitsEaten.Remove(_fruit); _fruit.ReactivateFruit(); } } }