I am trying to get a cube to rotate on button command. I have the button command code down, but the rotation is happening to quick. How do I slow down the rotation speed?
Here is one of the code for the button command rotation( I separated the left and right control from the up and down code)
function Start ()
{
}
function Update() {
if (Input.GetKey ("left")) {
transform.Rotate(0, 90, 0);
}
if (Input.GetKey ("right")) {
transform.Rotate(0, -90, 0);
}
}