C# Class EventManager, UnityEventManager

Inheritance: MonoBehaviour
Afficher le fichier Open project: djandrew/UnityEventManager Class Usage Examples

Méthodes publiques

Свойство Type Description
allowAutoCleanUp bool
allowDebugOutputs bool
allowSingleton bool
allowWarningOutputs bool
instance EventManager

Méthodes publiques

Méthode 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

Méthode 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 méthode

public addEventListener ( string eventType, GameObject listener, string function ) : bool
eventType string
listener GameObject
function string
Résultat bool

dispatchEvent() public méthode

public dispatchEvent ( CustomEvent evt ) : bool
evt CustomEvent
Résultat bool

removeAllEventListeners() public méthode

public removeAllEventListeners ( GameObject listener ) : void
listener GameObject
Résultat void

removeEventListener() public méthode

public removeEventListener ( string eventType, GameObject listener ) : bool
eventType string
listener GameObject
Résultat bool

Property Details

allowAutoCleanUp public_oe property

public bool allowAutoCleanUp
Résultat bool

allowDebugOutputs public_oe property

public bool allowDebugOutputs
Résultat bool

allowSingleton public_oe property

public bool allowSingleton
Résultat bool

allowWarningOutputs public_oe property

public bool allowWarningOutputs
Résultat bool

instance public_oe static_oe property

public static EventManager instance
Résultat EventManager