Unity Coroutines - Neat and tidy ways to know when they're done!

https://www.youtube.com/watc...
Unity coroutines should be in every game developer's toolbox. But knowing when a coroutine finishes can be tricky or at least messy. This video looks at how coroutines can yield for other coroutines as well as take in an action, event, or delegate - both provide ways of knowing when a coroutine is done or complete. Video Links ************ Events, Actions, Delegates: https://youtu.be/UWMmib1RYFE (Original) Coroutine Video: https://youtu.be/t4m8pmahbzY Support the Channel! ********************** ► Buy me a coffee: https://www.buymeacoffee.com/onewheelstudio ► Shop the Unity Asset Store (affiliate): https://assetstore.unity.com/top-assets/top-paid?aid=1100lHSw ► Become A Channel Member: https://www.youtube.com/channel/UCkr9CPPqT9VWUjkpo3HcACg/join ► Or a Patron: https://www.patreon.com/onewheelstudio ► My video and streaming kit: https://kit.co/onewheelstudio/tutorial-video-production ► Buy a Game Design Book: https://kit.co/onewheelstudio/game-design-reading-list-unity-c-blender-and-more Video Gear List (Amazon Affiliate) *********************************** ► Sony A6100 Camera: https://amzn.to/32logXz ► Sigma 16mm 1.4 Camera Lens: https://amzn.to/3KA4Wr4 ► GoXLR (audio interface): https://amzn.to/35dmr03 ► Shure SM7B Mic: https://amzn.to/3fNbV1E ► Blue Mic Arm: https://amzn.to/3tHgwdQ Neewer Light: https://amzn.to/3rD8eRv Light Softbox: https://amzn.to/3GUaHgQ Neewer RGB Light: https://amzn.to/3rCTQJ9 Other Links ************ Discord: http://discord.onewheelstudio.com Twitter: https://twitter.com/OneWheelStudio Devlog: https://onewheelstudio.com/ Twitch: https://go.twitch.tv/onewheelstudio Timestamps ************* 0:00 Intro 0:19 Backstory 0:50 The Usual Solution 1:55 Yielding to Coroutines 4:46 It's useful!! Here's an example! 5:46 Intro to the BEST solution 5:56 Using actions with coroutines 8:21 Example - yielding with actions