title: How to rotate the player when moving your mouse?
body: <p>What I mean in my question is that how to make your player rotate automatically when I move my mouse left for example and my whole characters body will rotate and limit its rotation back to a 2D view.</p>
  
  <p>Similar to the game "Rochard" if you guys know it. But I'm having trouble how to figure it out.</p>
  
  <p>This is my Code:</p>
  
  <pre><code>#pragma strict
  
  var spinx : int = 0;
  var spiny : int = 0;
  var spinz : int = 0;
  
  function Update () {
      transform.Rotate(spinx, spiny, spinz);
  }
  </code></pre>