Remember to always use a public property over a public variable.
Public variables such as below are potentially dangerous;
//bad practice public float myFloat = 0.1f;
Instead use;
//public variable - the best solution public float myFloat { get; set; }
Why use a public property over a public variable?
//You can do stuff like this with a public property public float myFloat { get; private set; } //make the get function public outside of the class, and the set //function private so only the class itself can set the variable