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