Uploaded November 2026 | Updated November 2026, 6 hours ago
❤️ My Health script used to hold a reference to the health bar, the hurt sound and the camera shake. Every new feature meant opening Health again. With C# events, Health just announces that it changed, and everything else listens. 📣
📚 In this video:
🧩 what a delegate is: a variable that stores a method
⚡ Action and Func, the ready-made delegate types
🔌 one event, many listeners with += and Invoke
🛡️ what the event keyword protects you from
👻 why you always unsubscribe in OnDisable
📂 Example code (console + Unity version):
github.com/GameDevBox/csharp-events-delegates
🎮 Wishlist Recursive Nightmare, my psychological horror game, on Steam:
store.steampowered.com/app/4987450/Recursive_Nightmare/?utm_source=youtube&utm_medium=description&utm_campaign=csharp_events_delegates
⏱️ Chapters
00:00 Health knows about everything
00:20 Delegates
00:40 Action and Func
01:00 One call, many listeners
01:20 Recursive Nightmare
01:29 The event keyword
01:51 Always unsubscribe
02:09 Recap
🎓 Part of the C# Patterns & Principles course on this channel.
#CSharp #Unity #GameDev
❤️ My Health script used to hold a reference to the health bar, the hurt sound and the camera shake. Every new feature meant opening Health again. With C# events, Health just announces that it changed, and everything else listens. 📣
📚 In this video:
🧩 what a delegate is: a variable that stores a method
⚡ Action and Func, the ready-made delegate types
🔌 one event, many listeners with += and Invoke
🛡️ what the event keyword protects you from
👻 why you always unsubscribe in OnDisable
📂 Example code (console + Unity version):
github.com/GameDevBox/csharp-events-delegates
🎮 Wishlist Recursive Nightmare, my psychological horror game, on Steam:
store.steampowered.com/app/4987450/Recursive_Nightmare/?utm_source=youtube&utm_medium=description&utm_campaign=csharp_events_delegates
⏱️ Chapters
00:00 Health knows about everything
00:20 Delegates
00:40 Action and Func
01:00 One call, many listeners
01:20 Recursive Nightmare
01:29 The event keyword
01:51 Always unsubscribe
02:09 Recap
🎓 Part of the C# Patterns & Principles course on this channel.
#CSharp #Unity #GameDev




![Smooth Camera Movement in Unity3D [Part 1] [Unity Script]
Here is a Unity video tutorial in which I show how I implemented a smooth camera movement Unity3D with a C# Script [Own Unity Script].
Part 2 : https://www.youtube.com/watch?v=wF5ylsLEuzs
Comment on any training you want 👊
🟩 Download Script : https://drive.google.com/file/d/1_uqbOdohyoLT6imYnQLFvipQJLr26AbK/view?usp=sharing
🟩 Subscribe to GolomOder :
https://www.youtube.com/channel/UCgXs2PTiL19Rv1qOn1SI7XQ?sub_confirmation=1
🟩 Cartoon Low Poly City Pack Assets : https://assetstore.unity.com/packages/3d/environments/urban/cartoon-low-poly-city-pack-165358
🟨 Music: https://www.purple-planet.com
🟨 Unity Assets : https://assetstore.unity.com/
🟨 Vectors : https://www.freepik.com/
#unity_tips_and_tricks #unity_games #UNITY
Remember to like and comment 🙌
If you have any questions post them in the comments and Ill do my best to answer them. Smooth Camera Movement in Unity3D [Part 1] [Unity Script]](https://i.ytimg.com/vi/eaHI4OW_Wgw/mqdefault.jpg)





