Multiple Events in one Object
For our example we want to bind the two events called
OpenGate
andCloseGate

Implement the
OnEventCalled()
and we added aSwitch on Name
based on our EventIDs to decide which logic should be run

Thats it! Now we can usae
CallEvent()
anywhere we want!

Last updated