コード例 #1
0
    private IEnumerator IncrementSpawnAmount()
    {
        yield return(new WaitForSeconds(DifficultyController.GetIncrementTime()));

        amountToSpawn++;
        print("incrementing amount, amount is now: " + amountToSpawn);
        StartCoroutine(IncrementSpawnAmount());
    }