Was having trouble with the instructions from my professor, the book, and other tutorials. I come here as a last resort and I finished my project in 15 minutes. I owe you a firm handshake and a soft drink of choice.
@kitsunderedesu2 жыл бұрын
This is probably the easiest to follow video I’ve seen yet on uncoupling dependencies with a concrete example, kudos.
@T3QN1Q2 жыл бұрын
I love observing the pattern of how many videos you have been making *snuggles*
@mandamoon91492 жыл бұрын
Listen, broadcast, execute! Love this, keep ‘em coming Bmo!
@foreducation4084 ай бұрын
simple and to-the-point video tutorial, thanks for making it helped me a lot.
@aboo24232 жыл бұрын
Its been long since i got away from unity but i can't stop watching your video and get the vibe to go back
@RaonCreate2 жыл бұрын
Keep going with those type of vids I love them!
@FyresGames Жыл бұрын
Yup very simple that way to decouple. A way to make it even safer and keeping the call private on both side is using a scriptableObject event as the middle man similare to what you did with scriptableObject variables.
@regys95212 жыл бұрын
This channel really make things easy to understand, thank you so much
@eileeng24922 жыл бұрын
Your hitting great points BMO Thank you
@sajadtroll91862 жыл бұрын
FINALY I CAN UNDERSTAND EVENTS! THANKS A LOT and again you are kinda Big Fitness Marshmallow ❤️
@harshavardhanpatilsp19011 ай бұрын
Very good explanation.
@andyBorko2 жыл бұрын
The best explanation of observer pattern. Thanks!
@MaximumSpice Жыл бұрын
Super simple and super clean. It's been something I've been wanting to learn but haven't got around to it yet. Think I might consider switching my current project over into this.
@techdave992 жыл бұрын
Another great video. Thanks.
@suicune20012 жыл бұрын
Thanks! That looks really handy. I'll definitely need to practice that.
@nicolasportu2 жыл бұрын
Cristal clear :) Advanced version looking forward. Thanks
@headed_weast2 жыл бұрын
I would like you to picture me in my best DJ Khalid voice saying “anotha one”
@woistdasniveau82902 жыл бұрын
Nice tutorial. I love how almost everything boils down to yeah just learn it xD
@MountReal7862 жыл бұрын
Thank you for this
@322ss2 жыл бұрын
I usually have used empty delegate in my event (OnCoinCollected = delegate { }), so I don't have to do old or new style null checks at all.
@TheKr0ckeR2 жыл бұрын
One thing I dont understand is, in this case, Subscriber to the event still needs to know about the class that has the Action? For example, I have an inputmanager class that has action inside of it called OnTap. When subscribing, I need smth like: InputManager.OnTap += DoSomething; How would i prevent this in this case? In your example, CoinText script is still coupled with Coin script?
@luckyknot Жыл бұрын
I understood the same as you. The good thing is that InputManager does not have to implement any call to any other classes, so it's doing only one thing which is good (separation of responsibilities). There must be a way to centralize all these OnSomeAction() that are scattered around in different classes and put them in a single manager class so the other subscriber classes can refer to that only class. That would be pretty neat.
@stephenkentperez77052 жыл бұрын
if for some reason your public method needs parameters you can also pass in parameters by using a lambda operator when adding a listener: OnExecute_Event += () => { SomeMethod(paramater); };
@muhammadzubairirshad67242 жыл бұрын
Great
@zacoriot11 ай бұрын
Probbly a rookie question but: 1. Why not subscribe during Awake or Start? 2. Why unsubscrube from an event?
@Stompin402 жыл бұрын
Exactly!!!!!!!!!
@godzillakingkongvenom2 жыл бұрын
👍😎🤠
@stefan4292 жыл бұрын
You should totally make a followup video about ran hipple's talk and implementing scriptable objects as events. theres a package already that does it called SO Architecture, maybe you can go over it, its very useful especially for newbs since they dont have to worry about subscribing/unsubscribing to events :D
@_Garm_2 жыл бұрын
Me += OnBMo :)
@jtmcfarland35127 ай бұрын
I understand this is "proper" and "how it's done", but I have to disagree with the philosophy. You've only managed to move the dependency from one script to another, not remove any dependencies. Also, by using events, now you've put more burden in the Update() part of your program. Events should only be used in the most demanding of circumstances and NOT every time you need one script to talk to another.
@RayHorn51280880562 жыл бұрын
You traded one type of dependency for another. Big deal.