In this video i show you the easiest way of use System.Actions and UnityEvents in Unity. UnityEvents is a very designer friendly way of use events like in the Unity UI buttons and System.Actions it is a default delegate that works in a very similar way except that works just with code. Both are very useful but i prefer Actions since UnityEvents can get messy very quick.
Looking to implement best practices for the use of our Actions, i recommend you to subscribe to your events in the OnEnable() method of your behavior, and unsubscribe later in OnDisable().
PD: I am sorry for the audio quality of this video. I know is not good so please, you are welcome to use the subtitles. This problem was fixed in latest videos.
Check our Sites:
Facebook: / moneydashoficialpage
Website: https://realmoney2d.wixsite.com/realm...
Money Dash Game: https://play.google.com/store/apps/de...
#realmoney2d #unity #unitytutorialforbeginners #unitytutorial #c# #howtomakegame #howtomakegameinscratch #howtomakegameappfor #unityステーション #unity2d #unity3d #learncoding