private IEnumerator IncrementSpawnAmount() { yield return(new WaitForSeconds(DifficultyController.GetIncrementTime())); amountToSpawn++; print("incrementing amount, amount is now: " + amountToSpawn); StartCoroutine(IncrementSpawnAmount()); }