[SerializeField] private Transform target;
void Update()
{
transform.rotation = target.rotation;
Vector3 relativePos = (target.position - transform.position).normalized;
transform.rotation = Quaternion.LookRotation(relativePos, transform.up);
}