This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| /** | |
| * Lessons: | |
| * 1. Scripts are mini-programs that operate on a GameObject in your scene. | |
| * 2. How to get a component of the GameObject this script is attached to? | |
| * 3. How to modify that component over time. | |
| * 4. FIX IN CLASS: There is actually a shortcut to get the transform of the GameObject. |