Come to this video via the AI-Series, and a really good and detailed explanation, and I like that Chris includes Why you would use a co-routine, just like his object pooling101 I do like that you include why you would want to use this inside your game.... And yes please make the text bigger please. On this and the Object pooling..... I think i am gonna need a thicker set of glasses :)
@LlamAcademy2 жыл бұрын
It gets bigger in the more recent videos! I'm sorry for the eye strain on the early ones!
@KingRecycle693 жыл бұрын
Using the fade example, what is the benefit of using a coroutine than just a lerp function?
@LlamAcademy3 жыл бұрын
You can use the Coroutine that calls Mathf.Lerp to remove that from your Update function. One of the big benefits of the Coroutine is that it allows you to execute code only when you want it to, so you don't have to have so much logic in an Update function cluttering up your class. If you're just comparing what I did in this video versus using Mathf.Lerp, there's no practical difference. Either will do the job just fine
@KingRecycle693 жыл бұрын
@@LlamAcademy So basically it allows the update loop or whatever after to keep going while your fade is doing its thing.
@LlamAcademy3 жыл бұрын
Yes! It allows you to move all kinds of stuff out of Update and gives you a lot more control in an organized way