Learn / Documentation / Script Reference / GameEventManager
Manual

GameEventManager

class in Doozy.Engine / Inherits from MonoBehaviour

Description

The GameEventManager class contains predefined actions for system events. If a system event is received, its predefined actions are triggered.

A game event string is considered to be a system event if it is contained in the SystemGameEvent enum values.

Static Properties

  • public static GameEventManager Instance – Returns a reference to the GameEventsManager in the Scene. If one does not exist, it gets created

Static Methods

  • public static GameEventManager AddToScene(bool selectGameObjectAfterCreation = false) – Adds GameEventsManager to scene and returns a reference to it

  • public static void ProcessGameEvent(GameEventMessage message, bool debug = false) – Checks to see if the message contains a system event and, if it does, it triggers a predefined action. A game event string is considered to be a system event if it is contained in the SystemGameEvent enum values. This method is automatically called every time a GameEventMessage is sent.