
Learning C# by Developing Games with Unity
By :

In the previous chapter, we saw how variables are written and touched on the high-level functionality that they provide. However, we're still missing the syntax that makes all of that possible.
Variables don't just appear at the top of a C# script; they have to be declared according to certain rules and requirements. At its most basic level, a variable statement needs to satisfy the following requirements:
The result of adhering to these rules is the following syntax:
dataType UniqueName = value;
Variables need unique names to avoid conflicts with words that have already been taken by C#, which are called keywords. You can find the full list of protected keywords at: https://docs.microsoft.com/en-us/dotnet/csharp...