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