If Else, Ternary Operator and many more - making decisions in Unity Scripts

Опубликовано: 16 Февраль 2022
на канале: PitiIT
599
51

In this episode we will explore how to make decisions in C# code. This tutorials go far beyond the basics like if else, ternary operator, we cover also coalescing operator, checking nulls an many more.

Got any questions? Join our discord:
  / discord  
If you would like to have a look at the whole Unity Scripting series:
   • Unity Scripting Tutorial: Practical i...  

#CSharp #Unity #CodingFundamentals

00:00 Intro
00:10 The basics
00:23 If
01:00 DON'T DO THAT
01:18 Else
01:29 Chaining ifs
02:26 Switch
03:16 Switch's default
03:35 Combining values in switch
03:45 Switch assignment
04:10 Ternary operator
04:48 Complex conditions
06:39 Null coalescing
07:07 Null coalescing assignment


Смотрите видео If Else, Ternary Operator and many more - making decisions in Unity Scripts онлайн, длительностью online в хорошем качестве, которое загружено на канал PitiIT 16 Февраль 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 599 раз и оно понравилось 51 посетителям.