public override void DoAttack() { if (currentAttackCD <= 0f && arrived) { animator.SetTrigger("attack"); GameObject go = Instantiate(projectile, shootPoint.position, Quaternion.identity); go.GetComponent <DuckBossLaserProjectile>().SetTarget(boss.GetTarget()); currentAttackCD = attackCooldown; laserSound.Play(); } }