camera to turn

I want to get the camera to move around Y axis as it doesnt turn left/right

This is javascript but I cant convert it to c#?

The Mouse Script is called just MouseLook in my version

transform.rotation=Quaternion.Euler(mycamera.GetComponent(MouseLookScript).currentYrotation,0);

It is from

In c# the translation would be:

   transform.rotation=Quaternion.Euler(0, mycamera.GetComponent<MouseLookScript>().currentYrotation,0);