GFEventthat represent the different events that GameFlow is able to manage. These classes are the following:
IEventListenerinterface can be added to the list of subscribers that will receive a notification when an event of a certain type is triggered. This allows your own scripts to react to events triggered by GameFlow programs.
EventReceived()methods of the
IEventListenerinterface to filter and respond to events.
AddListener()static method of the type of event to which we want an instance of our script to subscribe.
MyEventHookscript is subscribed to receive notifications of events of type
GameStart. Each time one of these events is received, we will post a message on the console as an answer: