//Similar to the above IEnumerators except for the truck //Except this time it resets the truck back to it's original position //And the IF statement is for the haybales so that they return to their original position when it is reset IEnumerator GenerateTrucks() { while (true) { //int generateTruck = Random.Range(lowerTruck, higherTruck); yield return(new WaitForSeconds(18)); TruckCont.ResetTruck(); for (int i = 0; i < FallOffCont.Length; ++i) { FallOffCont[i].HayReseter(); } } }