Exemplo n.º 1
0
    IEnumerator ShieldCoroutine()
    {
        yield return(new WaitForSeconds(SpawnHelpers.GetInitialShieldDelay()));

        while (true)
        {
            spawnShield();
            yield return(new WaitForSeconds(shieldSpawnDelay));
        }
    }