Switch statement and Enums - C# Basics for Unity Beginners: #9 @SunnyValleyStudio
Switch statement and Enums - C# Basics for Unity Beginners: #9  @SunnyValleyStudio
Uploaded March 2024 | Updated September 2026, 2 weeks ago
In part 9 we will look at what is Switch statement and how it helps us to create branching logic. Next we will explore Enums and how they make our code more readable.

C# Basics for unity series:
youtube.com/playlist?list=PLcRSafycjWFeHojgzbkNUXt9S6-Q7BGQE

Welcome to this C# Fundamentals for Unity Beginners series of 10 videos. We will first explore what are the basics of C# syntax and next we will create a small Vampire Survivors like game together so that you can see Why and How different C# concepts are used to create games in Unity.

-----------------

Starter Project:
patreon.com/posts/c-essentials-for-99701780

Learn more about C# & Game Dev in Unity in my video courses at:
courses.sunnyvalleystudio.com

---------------

Join the discord:
discord.gg/RQEtYHz

You can support me through Patreon:
patreon.com/sunnyvalleystudio

Assets used:
https://kenney.nl/assets/tiny-dungeon

---------------
00:00 Switch Statement
01:43 Switch statement for spawn point selection
01:52 Coding an if statement
12:09 Local scope using { .. }
15:54 What are Enums and how to use them

#unity3d #csharp #coding #gamdev
Switch statement and Enums - C# Basics for Unity Beginners: #9Unity 6.5: Whats New (and What Might Break Your Project)Unity VR Essentials: Grabbing with XR Interaction ToolkitAdding depth to 2D games in Unity!Inspect your Game Map more easily in Scene View by Hiding all Tools #unitytipsMake Your Unity Game Stand Out with Custom ShadersHow to Make a Pixel Art Shader in Unity 6 👾Create Custom 3D Game Props in Minutes with Hitem3DPiercing Menu - Getting lists of GameObjects under the pointer in Unity 6 sceneHow to get the MIXTAPE Animation Look in Unity (In 60 Seconds)Hex grid Placement system in 60 sec - Unity tip!Inspector tips to boost your productivity in Unity!  #unitytips
Sunny Valley Studio |

Switch statement and Enums - C# Basics for Unity Beginners: #9

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER