[Lesson 12] Scope of Variables (Global and Local) in Unity and C# | Course: Getting Started with ...

Опубликовано: 27 Июль 2026
на канале: Desenvolvendo Jogos
989
115

• Create a Beat 'em Up game in Unity: https://www.udemy.com/course/jogo-de-...

[Lesson 12 - Getting Started with Unity and C#]
In this lesson we will review the differences between global and local variables, that is, how their scope works in C# within Unity :)

| -- Useful Links -- |

• Download Unity: https://unity.com/pt/download
• Download Visual Studio Code: https://code.visualstudio.com/
• Download the course assets: https://github.com/GabrielChiarelli/a...

• Support the channel: https://apoia.se/desenvolvendojogos

=== == ===

🎮 My Game Creation and Programming courses:
• Street Fighting Game (Beat'em Up) in Unity: https://www.udemy.com/course/jogo-de-...

• Create your first game in Godot 4: • Learn how to create a 2D platform game in Unity: https://www.udemy.com/course/unity-cr...

• Create a Retro FPS Game in Unity: https://www.udemy.com/course/aprenda-...

• Create your first 2D game in Unity: https://www.udemy.com/course/unity-2d...

• Create a 2D Top-Down Shooter Game in Unity: https://www.udemy.com/course/crie-um-...

• C# - First Steps | Learn to program from scratch: https://www.udemy.com/course/c-sharp-...

=== == ===

Timestamps/Chapters of the lessons:

00:00 - Introduction
00:40 - Understanding the difference between "Global" and "Local" variables
09:18 - Conclusion and Acknowledgments :)

=== == ===

The Developing Games channel aims to provide free courses and tutorials on game development. I always try to explain step-by-step everything I do in every class, so that we can not only make a game, but also understand why we're doing what we're doing :)

If you want to help keep the project alive (and if you can, of course), you can do so by purchasing our Paid Courses and/or through our Crowdfunding Campaign on Apoia.se!

And even if it's just with your Like and Share, I already appreciate the support immensely 😄

#DevelopingGames #unity #gamecreation

"True happiness lies in seeing and making others happy!" & "Smile today, you deserve to be happy!"