C# : variables! Useful info, little tips and advice

I create a variable called number and assign value of 5
I can access to number varaible in any point. If we create a new method, we can access without problems to it
The value from inspector is reset at the script value.
change PUBLIC to PRIVATE
[SerializeField] attribute

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matteo Lo Piccolo

Matteo Lo Piccolo

82 Followers

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!