Is this valid C# code?

preview_player
Показать описание
👍 Learn to make awesome games step-by-step from start to finish.

🔴 RELATED VIDEOS 🔴

💬 Is this valid C# code?

📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.

I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

The only sin here is storing the player state in a string!

S_Tadz
Автор

i personally hate when people do 3 nested ternary operators lol

joeman
Автор

I like incorporating ternaries in my code, so when I saw this code, I quickly knew it was valid.

facelessanon
Автор

coming from a python background a ternary operator is so useful, Python has a shorthand if thing aswell but it's just an if statment in one line and I don't like the syntax of it

DigitalCanineGames_
Автор

Somehow for me, as a non native English speaker, this structure ? "X" : "Y" feels easier to read than classic if then else

DanilaSaprykin
Автор

Hah, chatgpt throws me this shit all the time lol

zanagi