GAMES IN PROGRESS
Latest Videos
Home
/
Indie Game Developers
/
Tarodev
/
C# Events & Delegates

C# Events & Delegates

17 min
Events are great for crossing boundary lines in your application or game without coupling components together. Objects can subscribe to an event and be notified whenever the publisher performs a specific action. Delegates are the building blocks of events, so listen closely and you'll learn all about them! โค๏ธ Become a Tarobro on Patreon: https://www.patreon.com/tarodev ========= ๐Ÿ”” SUBSCRIBE: https://bit.ly/3eqG1Z6 ๐Ÿ—จ๏ธ DISCORD: https://discord.gg/tarodev โœ… MORE TUTORIALS: https://www.youtube.com/tarodev 0:00 - Delegate keyword 3:48 - EventHandler 4:34 - Action 5:13 - Generic Action 6:02 - Func 6:40 - Practical Example 7:50 - Static 9:05 - Event keyword 10:20 - UnityEvent 12:30 - Unsubscribing 14:50 - Decoupling 16:20 - Delegates as parameters