I found this answer - float angle = 90 - Vector3.Angle(Vector3.up, transform.forward) that may help.
float angle = 90 - Vector3.Angle(Vector3.up, transform.forward)