So if I’m correct a delegate is called whenever we do delegate.AddDynamic(this, &class::function);
right?
I’m just confused as to how it knows when to call a delegate when AddDynamic is just binding a function.
Additionally, events and delegates are esseentially the same thing then right?
Incidentally the delegate we called needs to have the same parameters as the function if I’m right? The order doesn’t matter so far as the paramters are right?
I wish there was a more indepth explanation of all this if you could show.
Edit: I’m seeing that OnComponentHit calls another delegate which is OnTakeAnyDamage. A bit confusing.