The Best Way to Create an Event System in Unity [Free Example Download]
ฝัง
- เผยแพร่เมื่อ 16 ต.ค. 2024
- #unity #gamedev #gamedevelopment #unity3d #coding #computerscience #csharp #csharptutorial
In this video I'll explain the best way to create an Event System in Unity. Rather than using UnityEvents (which are slower and create more garbage) or Events (which can only be called by the parent class) we will use delegates in C# to implement the Observer Pattern and allow decoupling of your code.
Download the Unity Project/Example here: www.dropbox.co...