public IEnumerator CoroutineStartShooting(ParticleShooter shooter)
 {
     while (true)
     {
         shooter.Shoot();
         yield return(new WaitForSeconds(shooter.DelayInSeconds));
     }
 }
Example #2
0
 private void Start()
 {
     particleShooter        = GetComponentInChildren <ParticleShooter>();
     shooter                = GetComponentInChildren <ParticleSystem>();
     particleShooter.damage = damage;
 }