How would I rotate an object a certain number of degrees when the left arrow is pressed and then rotate it back to its start when the left arrow is released?
1
\$\begingroup\$
\$\endgroup\$
You may want to look into this and this. Unity makes it really easy.
The scripting reference is your best friend.
Something like the following:
if (Input.GetKeyDown(KeyCode.LeftArrow))
transform.rotation = Quaternion.Euler(0, 30, 0);
else if (Input.GetKeyUp(KeyCode.LeftArrow))
transform.rotation = Quaternion.identity;