Vektor3.
float angle = Vector3.SignedAngle(transform.forward, direction, Vector3.up);
Confused Constrictor
float angle = Vector3.SignedAngle(transform.forward, direction, Vector3.up);