Class EventListener<TArg0, TArg1, TArg2, TArg3>
Four argument event listener.
Namespace: FasterGames.Whiskey.Events
Assembly: cs.temp.dll.dll
Syntax
public abstract class EventListener<TArg0, TArg1, TArg2, TArg3> : EventListenerBase
Type Parameters
| Name | Description |
|---|---|
| TArg0 | first argument type |
| TArg1 | second argument type |
| TArg2 | third argument type |
| TArg3 | fourth argument type |
Fields
event
The event to listen to.
Declaration
protected Event<TArg0, TArg1, TArg2, TArg3> event
Field Value
| Type | Description |
|---|---|
| Event<TArg0, TArg1, TArg2, TArg3> |
reaction
The reaction that occurs when the event is raised.
Declaration
protected EventListener<TArg0, TArg1, TArg2, TArg3>.UnityReaction reaction
Field Value
| Type | Description |
|---|---|
| EventListener.UnityReaction<> |
Remarks
Only raised if the Game Object this is attached to is active.
Properties
Event
The event to listen to.
Declaration
public override EventBase Event { get; }
Property Value
| Type | Description |
|---|---|
| EventBase |
Overrides
Reaction
The reaction that occurs when the event is raised.
Declaration
public override UnityEventBase Reaction { get; }
Property Value
| Type | Description |
|---|---|
| UnityEventBase |
Overrides
Remarks
Only raised if the Game Object this is attached to is active.
Methods
Handle(TArg0, TArg1, TArg2, TArg3)
Handler that is invoked when the event is raised
Declaration
protected virtual void Handle(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3)
Parameters
| Type | Name | Description |
|---|---|---|
| TArg0 | arg0 | first argument |
| TArg1 | arg1 | second argument |
| TArg2 | arg2 | third argument |
| TArg3 | arg3 | fourth argument |
OnDisable()
Unity editor hook for when the game object is disabled.
Declaration
protected virtual void OnDisable()
OnEnable()
Unity editor hook for when the game object is enabled.
Declaration
protected virtual void OnEnable()