Answers for "I am getting a problem with moving and rotating a camera!"
http://answers.unity.com/questions/357415/i-am-getting-a-problem-with-moving-and-rotating-a.html
The latest answers for the question "I am getting a problem with moving and rotating a camera!"Answer by GerryM
http://answers.unity.com/answers/357552/view.html
You are trying to use [Quaternions][1] as an [Euler][2] rotation.
Unity does store rotations (internally) in quaternions, but what you see in the inspector (and what is more intuitive for most people) are euler rotations. Naming the first 3 dimensions of a quaternion x, y, and z does add to the confusion.
So, just change:
Camera1.transform.rotation = new Quaternion(RotationX, RotationY, RotationZ, 0);
to something like:
Camera1.transform.rotation = Quaternion.Euler(RotationX, RotationY, RotationZ);
[1]: http://docs.unity3d.com/Documentation/ScriptReference/Quaternion.html
[2]: http://docs.unity3d.com/Documentation/ScriptReference/Quaternion.Euler.htmlSat, 01 Dec 2012 21:47:25 GMTGerryM