title: How do I smoothly rotate the camera in unity?
body: <p>I am making a 2d unity game with C#. Right now, I am trying to make the camera rotate and I am using this code:</p>
  
  <pre><code>rotateX = Random.Range (0, 50);
  Camera.main.transform.eulerAngles = Vector3(0,0,rotateX);
  </code></pre>
  
  <p>But every time I try to run the game, it gives me an error.
  Anybody have tips on how I can (smoothly) rotate the camera from side to side?</p>