(Ep 1.2) Public & Private (Access Modifiers) - Unity C# Idle Game Tutorial Series [2021 Edition]
CryptoGrounds
CryptoGrounds: Coding and Gaming, for Everyone!
Hello! In this video, I will be explaining the 2 most common access modifiers for methods and variables, public and private!!
public: can be accessed in any class within a namespace (namespaces are not required for Unity, so just know that it can be accessed and changed anywhere in the Unity project.
private: can only be accessed within the class it was created in, can be accessed with a public method however it's tedious.
Access Modifers Crash Course: https://www.youtube.com/watch?v=qUGuKsiSko8&list=PLGSUBi8nI9v8SrlqTxNbAJCs4lYpxbOhR&index=5
Namespaces Crash Course: https://www.youtube.com/watch?v=l57yGfWpS9w&list=PLGSUBi8nI9v8vw7NzLCWzlW1qx2-N0wiT&index=2
After this video you will have a good understanding on what public and private mean in C#!
If you enjoyed this video, be sure to leave a like and drop a comment below! If you are new and you are interested in many game development tutorials and gaming videos, subscribe to my channel and turn on notifications! I do my best to post daily tutorial videos explaining the best I can! Thank you :D
~~ SUPPORT ME~~ Join Discord: https://discord.gg/S9mtMTw FREE: Like, Comment, Subscribe, Turn on notifications, and watch the entire video! PATREON: https://www.patreon.com/cryptogrounds PAYPAL: https://www.paypal.me/cryptogrounds PLAY MY GAMES: https://www.cryptogroundsgames.com
Support me and try out this browser: Get $$ from clicking a button on a notification advertisement! Easily transfer everything from your current browser to Brave. If you love Chrome, you will love this browser too! https://brave.com/nig122
💲TRX Donations Accepted! TTYitvh8mcVfrUFEz3npNGdtMfY3oCdeu3
🔊 Stay Connected! Turning on notifications for when I upload videos and streams would help to notify everyone on market changes!
❤️Other Accounts❤️ Twitch: https://www.twitch.tv/cryptogrounds Twitter: https://twitter.com/Crypto_Grounds
#unity #idlegame #unityidlegame ... https://www.youtube.com/watch?v=MpVKINWu4tI
14448002 Bytes