I am using the current code to rotate a camera and the rotation stops at 180. I would like it to continuously rotate so how would you fix this code?
var speed : int = 5;
function Update () {
gameObject.transform.rotation.y += speed*Time.deltaTime;
}