We don't see or modify those Unity class files, but they're in Unity somewhere:
- The name of the class is also known as the object type of the object that will be created in memory from that class when the Play button is clicked.
- Just like int or a string is a type of data, the name of a class is also a type of data.
- When we declare a variable and specify the type of data it will store, it can easily just store a reference to an object of the LearningScript type, as shown in the following line of code:
LearningScript myVariable;
- Storing a reference to an object in a variable does not mean we are storing the actual object. It means we are storing the location in the memory of that object. It's just a reference that points to ...