And by finishing this video I finally finished the series of c# for beginners
@indieprogress71705 жыл бұрын
nice
@magnusm44 жыл бұрын
I already knew the whole beginner series. The problem is remembering how to write them and exactly what they do XP I can go a whole month coding and only later try to use a switch statement. Problem is I have nothing yet that compares a single variable only multiple
@IDontReadReplies420694 жыл бұрын
Great! now go try and make a game and get frustrated because every example code is gibberish to you, because there's no middle ground between knowing basic syntax/operators and being able to actually program something LOL
@QuackersMcCrackers4 жыл бұрын
human.intelligence += 5;
@SirRelith5 жыл бұрын
I wish Unity would put out more advanced tutorials that go over the modern versions of their software.
@indieprogress71705 жыл бұрын
agreed.
@IDontReadReplies420694 жыл бұрын
it wouldn't really be worth their time, because if you're actually advanced you can just read through the API or manual much faster than someone explaining something to you
@neillunavat4 жыл бұрын
Agreed.
@ThunderStormFortnite2 жыл бұрын
@@IDontReadReplies42069 who the hells needs to be advanced to do a quick search
@NathanRohner5 жыл бұрын
For years I have been using if statements, knowing there's a better way. Today I finally found a simple alternative 😭🙏
@indieprogress71705 жыл бұрын
Switch statements are awesome, especially when using them with Enums.
@NeverEverTM4 жыл бұрын
i just discovered switch after someone rant someone else beacuse he wasnt using switches xd
@Atlas-bu4vh4 жыл бұрын
@@NeverEverTM Are you talking about yandere dev ?
@klickklack_pron95044 жыл бұрын
@@NeverEverTM deadass tho
@soaringsquid0.1294 жыл бұрын
Should we stop using if statements?
@comradeviper40544 жыл бұрын
Somebody show this to yandare dev...
@brandonfleming71184 жыл бұрын
Exactly what I was thinking. I am amazed he hasn't used switch statements. It would increase the FPS ten fold.
@ottersaurus4 жыл бұрын
BrandonFleming Actually if you look at the performance even if he did switch all his if else statements to switch statements the game wouldn’t speed up by much. The compiler is also smarter than you where it will detect and use switches if you’re using too many if else statements. Source: Yandere Simulator Complete Source Code Analysis - Code Review
@brandonfleming71184 жыл бұрын
@@ottersaurus Wow, didn't know that. Thanks!
@behindthepickle4 жыл бұрын
He's the reason I thought to look up this video before doing an if statement XD
@hasanmuttaqin4643 жыл бұрын
@@behindthepickle y know wha? dam, we same
@zealot43254 жыл бұрын
Thank you for this course. Now i feel myself a bit more confident about scripting
@josh_swanson5 жыл бұрын
Sir, don't talk down on yourself. You are definitely of high intelligence!
@aquaarmour49245 жыл бұрын
It's called humor.
@brummi98693 жыл бұрын
"As I am not of particularly high intellignece myself" he says while explaining me C sharp code
@laz36644 жыл бұрын
3 yandere dev fans have disliked this video
@ShatabdaRoy1152 жыл бұрын
lol
@gadgetboyplaysmc4 жыл бұрын
I actually reached the end.
@explior65584 жыл бұрын
Thank you! Clear, simple, efficient!
@MarchalisVan Жыл бұрын
Now I realize why I have never really run into this. Those switch moments are always one offs in any of my code, rather than asked every Update (negligible). Also, most of the time I might look for a "range" with < or >, or need a calculation done for the next check, also think of Raycast checks as well. Actual sufficiently beneficial use case for a switch opposed to using "else if" is really low in moooooost game scenarios. And computers are so fast these days that an int check with "else" if is practically free. I mean test it, run 10 else if statements (All wrong) ending with else in Update, so it checks them all. then copy paste 1000-10,000 times and see what the performance drop is lol, probably 0 loss in frames.
@fuzzy-024 жыл бұрын
Did this cover all code of unity in C# or the videos stopped coming out please all mighty Unity gods heed my calls
@wadewarman6063 Жыл бұрын
For some reason, the switch statement doesnt actually print to console for me. Anyone have any advice? Thanks!
@j_lucas84227 ай бұрын
Print was just a demonstration, if you're using Unity change print to "Debug.Log()"
@thapelomokoena19534 жыл бұрын
Yandare dev knows this. They have switch statements and if statements for the same thing
@templetherapy4 жыл бұрын
These were great
@sashmaster34334 жыл бұрын
200 iq guide. Yes. But actually I already forgot everything.
@moonglowmelodies73364 жыл бұрын
Sash Master take a screen shot then
@6959-n6n3 жыл бұрын
Someone: Hi there! The Character: Grog SMASH!
@relhimp5 жыл бұрын
Wanna use object's type as switch? Make a dictionary with type keys.
@Quellrid4 жыл бұрын
Case 2 is reference to Critical Role?!
@SketchyCreaseURL1234 жыл бұрын
i thought same lol
@karacter33693 жыл бұрын
yo babeeee finisheeddd
@ngoquangao18035 жыл бұрын
Done!
@CowboyCola62 жыл бұрын
finished,yeah!
@Yes-ok5me4 жыл бұрын
wow just finished and made unity easily to me
@unity4 жыл бұрын
We're so glad to hear that, what's your next step?
@Yes-ok5me4 жыл бұрын
@@unity if you could help me it will be thanksfull im good at unity but now know it better and easiy another question could i create non games apps for android its ok???
@MEGA_TREE2 жыл бұрын
Good programming
@WerIstWieJesus5 жыл бұрын
I Like those videos. But here the example was not so good. If all cases between 1..5 are examined it is much more efficient to use an array of strings to address directly the good answer with the integer "intelligence" after having verified that "intelligence is in the range.
@justincash11815 жыл бұрын
WerIstWieJesus an array has a set data type and no default (thought it wouldn’t be hard to create a default, just inconvenient)
@marcof.48124 жыл бұрын
Anything can be optimized but these video are meant for beginners, I believe the goal is to best explain how switch statements work. I appreciate your suggestion though!
@fuzzy-024 жыл бұрын
Thats verry smart
@hpenvy156 ай бұрын
Thank you good sir! Super easy to understand and finally i think i could use it. Intelligence 1; blabliplarbrbrbr ❤
@TheFingledorf4 жыл бұрын
"greeting based on intelligence" - Fallout? ;)
@piipitkanen30805 жыл бұрын
do next how get blocks moving :) and why it comes only errors when i do somebady command :( tell me plz
@happypixel69144 жыл бұрын
What...?
@zachdavis66242 жыл бұрын
If only unity and intellisense actually worked well together...
@_aralgames_19865 жыл бұрын
When russian subtitres?
@athanasiusrisang3 жыл бұрын
YandereDev needs to watch this video if he wants his game to have better performance.
@Nikkcoaaa4 жыл бұрын
YandereDev need see that vide
@lollipopofdoom69274 жыл бұрын
Gilb blu bll bub?
@RodMen_89 Жыл бұрын
and why not just simply put: if(inteligence==5) { print } else if(inteligence==4) { print}...?
@anaislake5 жыл бұрын
hello darlings, i am more than a mom, but humbly i submit that there is one huge error in this tutorial for beginners. the script names wrongly named shows up in the autofill in visual studio. this is a total pain, eg. transform. even if you rename the script, i am unsure how to remove an autofill class. you can see that autofilling and typing Trans you immediately get this script and have to click off and it is quite tiresome. also, as i am venus in virgo and in fact today venus is in virgo, my perfectionism wants you to know that future beginner lessons can be much improved by simplifying the scene with just a plane and cube. no need for the other drama when teaching beginning concepts. thank you and good day and happy full moon in pisces and happy friday the 13th.
@NeverEverTM4 жыл бұрын
One question... uh *_Edited what_*
@Andrelas114 жыл бұрын
I thought the video was a bit hard to follow but then I came here and I feel much better about the video now lol. ;P