Menu Close

Scope and Access Modifiers

What I learned

-I learned what the scope means in coding, and the differences between public and private, and how you use them. I also learned how you could use void Start() to override the value given to a public variable in the inspector by setting it a value to give itself when the piece of code or game starts. Which In my piece of code, and if you watch the video, is NumberOfTulips, I set it to 300, but when I start the game it sets it to 20. Which is what I set it for in the void Start().

Leave a Reply

Your email address will not be published. Required fields are marked *