Unity for Absolute Beginners Lesson 2 – Rotate object with code

In this lesson we create our first script where we get input from the user using Input.GetAxis which is represented by a number between -1 and 1. We then store this number in a variable and rotate the plane using transform.Rotate.