Great lesson. But can you explain what is the meaning of the code color? For example if I write Transform with capital T it has different meaning and color.
Hi Alex,
We are following the/a C# coding convention. In most C# conventions, variables start with a minuscule character, and classes start with a majuscule character.
This means that “Transform” refers to the class Transform, and “transform” refers to the variable named transform
.
In most cases, we must create objects from classes, so we mainly use class names for declaring things with a type. For example:
Transform playerTransform;
List<Transform> enemies;
Is this what you wanted to know?
See also:
- Forum User Guides : How to mark a topic as solved
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.