Turn the character when the camera rotates of 90° or 180°

I would like to turn the character when the camera rotates of 90° or 180°, anyone can help me ?