how to use transform.rotation in unity code example
Example: transform.rotation.x unity
transform.eulerAngles = new Vector3( xRotation, transform.eulerAngles.y, transform.eulerAngles.z );
transform.eulerAngles = new Vector3( xRotation, transform.eulerAngles.y, transform.eulerAngles.z );