A capital idea
The Transform component is listed as Transform with an uppercase T. When we refer to it in code, we use a lowercase t. In the Script Reference, it has an uppercase T again. But, if you've already made the mistake of using an uppercase T in your code, Unity threw you an error in the console window. What gives?
Unity's language is case sensitive, which means that a word with a capital letter is treated as a completely different thing than the same word with a small letter. So, transform
and Transform
are as different from each other as the words night and day.
Transform
is a class. A class is like a blueprint that you use to make other things. You might implement power-ups in your keep-up game. Your capital-P Powerup
class describes what a power-up should look like and how it should behave. You might create a new power-up using your Powerup
class, and label it powerup
with a small p. The capital-P Powerup
class contains the instructions for building something, and lowercase-p...