C# Class EventManager, UnityEventManager

Inheritance: MonoBehaviour
Show file Open project: djandrew/UnityEventManager Class Usage Examples

Public Properties

Property Type Description
allowAutoCleanUp bool
allowDebugOutputs bool
allowSingleton bool
allowWarningOutputs bool
instance EventManager

Public Methods

Method Description
addEventListener ( string eventType, GameObject listener, string function ) : bool
dispatchEvent ( CustomEvent evt ) : bool
removeAllEventListeners ( GameObject listener ) : void
removeEventListener ( string eventType, GameObject listener ) : bool

Private Methods

Method Description
Awake ( ) : void
OnApplicationQuit ( ) : void
OnLevelWasLoaded ( ) : void
Setup ( ) : void
checkForEvent ( string eventType ) : bool
checkForListener ( string eventType, GameObject listener ) : bool
deleteEvent ( string eventType ) : bool
recordEvent ( string eventType ) : bool
recordListener ( string eventType, GameObject listener, string function ) : bool

Method Details

addEventListener() public method

public addEventListener ( string eventType, GameObject listener, string function ) : bool
eventType string
listener GameObject
function string
return bool

dispatchEvent() public method

public dispatchEvent ( CustomEvent evt ) : bool
evt CustomEvent
return bool

removeAllEventListeners() public method

public removeAllEventListeners ( GameObject listener ) : void
listener GameObject
return void

removeEventListener() public method

public removeEventListener ( string eventType, GameObject listener ) : bool
eventType string
listener GameObject
return bool

Property Details

allowAutoCleanUp public property

public bool allowAutoCleanUp
return bool

allowDebugOutputs public property

public bool allowDebugOutputs
return bool

allowSingleton public property

public bool allowSingleton
return bool

allowWarningOutputs public property

public bool allowWarningOutputs
return bool

instance public static property

public static EventManager instance
return EventManager