C# If Statements in Unity! - Beginner Scripting Tutorial

preview_player
Показать описание
This video explains how to use IF statements to set conditions in your code!

Рекомендации по теме
Комментарии
Автор

I believe the part at @0:28 is incorrect. You state that the else-statement "will not be executed when the first condition is not satisfied" which is incorrect. That is exactly when the else statement will be executed :)

OhItsThatWeirdoGuy
Автор

Whoever coded Yandere simulator might have ended the video at 1:05 and started writing code

not_herobrine
Автор

I have no idea how to execute this script as its not shown in the video. I attached it to Main camera on a empty project. The script in the inspector window has "the associtated script can not be loaded" message while VisualStudio has 0 errors.

Edit: Fixed it, name.cs and the class name inside the .cs file have to match.

prototype
Автор

WHAT DID YOU DO TO THE LAST SPEAKER, DON´T JUST PRETEND HE DIDN´T EXIST I WILL FIND OUT.

brummi
Автор

TemperatureTest does not appear as a function to me?

komodo
Автор

I think that instead of coffee, it should be tea. (this is a good joke if he is British)

davidadrmd
Автор

can you make an if statement via transform.position

illusion
Автор

Nothing happens when I press down space? I tried binding the script to an empty game object but it makes no difference.

coruvo
Автор

i didn't understand why there are no curly brackets under the first IF in the code

julianagabriele
Автор

2 tane türk varmı allah aşkına! yabancılar ve türkler . karşılaştırma bile yapılmaz

fy-feyyazyapms
join shbcf.ru