Class AppEventListener
A component which listens to an AppEvent. In the inspector, drag and drop in the list of responses to set up which funtions will be called when the event is raised.
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public class AppEventListener : AppEventListenerBase
Fields
Event
The event that is being listenned to.
Declaration
public AppEvent Event
Field Value
Type | Description |
---|---|
AppEvent |
Response
The UnityEvent that can have delegates assigned to in the inspector. These delegates will be invoked when the event is raised.
Declaration
public UnityEvent Response
Field Value
Type | Description |
---|---|
UnityEvent |
Methods
OnEventRaised()
Invokes all delegates asigned to this response in the inspector.
Declaration
public override bool OnEventRaised()
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the event response was successful or not. |
Overrides
RegisterSelf()
If Event
is not null, register this object to it.
Declaration
public override bool RegisterSelf()
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the registration was successful or not. |
Overrides
UnregisterSelf()
If Event
is not null, unregister this object from it.
Declaration
public override bool UnregisterSelf()
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the unregistration was successful or not. |