If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
This is how you make a quaternion that locally rotates around the Y:
whateverTransform.localRotation = Quaternion.Euler( 0, angleLeftRight, 0);
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
This is how you make a quaternion that locally rotates around the Y:
whateverTransform.localRotation = Quaternion.Euler( 0, angleLeftRight, 0);