public void CheckToShoot(Vector3 positionSelf, Quaternion rotationSelf, Vector3 positionTarget) { Quaternion quatRotation = FindDirection(positionSelf, positionTarget); if (CheckRotationToTarget(quatRotation, rotationSelf, threshold)) { return; } if (fireCountdown <= 0) { tower.Shoot(); ResetCountdown(); } }