C# Events in Unity

C# Events in Unity

49.901 Lượt nghe
C# Events in Unity
Sign up for the Level 2 Game Dev Newsletter: http://eepurl.com/gGb8eP In this video, you'll learn how to use C# Events in Unity through a practical example that you can download for free (link in description). #Unity3D #UnityTutorial #GameDevelopment Sometimes objects need to communicate without knowing about each other. That's where C# Events come in handy - they allow objects to collaborate without tight coupling. This video covers how to implement a simple event using a custom delegate. Download the free code and follow along as we define a delegate method, create an event, and wire up a listener to open a door when it fires. While events come with some overhead, there are plenty of valid use cases for C# Events in Unity and Game Development in general. 📦 Download the code at https://www.patreon.com/posts/35573982 👨💻 Join our community: https://discord.gg/NjjQ3BU ❤️ Support the channel: https://www.patreon.com/infalliblecode My Favorite Unity Assets 💯⤵️ 1️⃣ Odin Inspector: https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?aid=1100l3e8M 2️⃣ Shapes: https://assetstore.unity.com/packages/tools/particles-effects/shapes-173167?aid=1100l3e8M 3️⃣ Easy Save: https://assetstore.unity.com/packages/tools/input-management/easy-save-the-complete-save-load-asset-768?aid=1100l3e8M 4️⃣ Dialogue System for Unity: https://assetstore.unity.com/packages/tools/ai/dialogue-system-for-unity-11672?aid=1100l3e8M 5️⃣ Editor Console Pro: https://assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1100l3e8M ⚡ Learn more about Unity 3D Plus at http://prf.hn/click/camref:1100l3e8M/destination:https://store.unity.com/products/unity-plus 👋 Contact me directly at [email protected] * Disclosure: These are affiliate links, which means I'll receive a commission if you use them to make a purchase.