C# Class EventManager, UnityEventManager

Inheritance: MonoBehaviour
Mostra 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_oe property

public bool allowAutoCleanUp
return bool

allowDebugOutputs public_oe property

public bool allowDebugOutputs
return bool

allowSingleton public_oe property

public bool allowSingleton
return bool

allowWarningOutputs public_oe property

public bool allowWarningOutputs
return bool

instance public_oe static_oe property

public static EventManager instance
return EventManager