IEnumerator StartShooting(int count) { bulletsAreFlying = true; for (int i = 0; i < count; i++) { ground.AddBullet(CreateBullet()); yield return(new WaitForSecondsRealtime(timeBeetwenSpawn)); } }
IEnumerator StartShooting(int count) { bulletsAreFlying = true; for (int i = 0; i < count; i++) { ground.AddBullet(CreateBullet()); yield return(new WaitForSecondsRealtime(timeBeetwenSpawn)); } }