Doesn’t matter how much I strive to understand the usefullness of events, I simply can’t see how they differs from normal Functions.
Let’s suppose that I need to check if a ball Object has or not touched the floor. Without using events, I’d check at every update() if the ball position in y-axys is the same as the floor. If it is, a function will be called in which something happens.
So what are events useful for ? To do the same with events I need to create-an-istance-of-a-delegate-and-pass-it-in-the-declaration-of-an-event-that-will-then-define-a-method-which-will-be-triggered-if-something-in-different-assembly-as-been-subscribed-to-the-said-event-declaration-to-trigger-the-function-in-the-other-assembly-whaaat ?!
I’d need to do all of this to actually change the function in Update() with an event ?
Or pheraps i’m completely wrong and events may be triggered in this scenario even without the use of the update() function ?
I mean i’d see the great use of events if in this case for example it would ignite without having to check everytime the y-axys of both objects but it is not the case (as far as I understood)
I find my self always relying to update() if I need to do particular behaviour in case somethings happens, is it wrong ? Because generally I end up checking for loads of information alltogheter in the same frame to understand if I should raise some methods or not, is this wrong ?
What part of events I’m not understanding right ?