private void Update() { Vector3 direction = target.transform.position - transform.position; transform.Translate(direction.normalized * speed * Time.deltaTime); if (Vector3.Distance(transform.position, target.transform.position) <= 0.05f) { EventCoordinator.FireEvent(new DamageEvent(shooter, target, shooter.AttackDamage, Health.DamageType.Ballistic)); BallisticTurret.ReturnBulletToPool(this); } }