Class EventListener<TArg0>
Single argument event listener.
Inheritance
System.Object
EventListener<TArg0>
Namespace: FasterGames.Whiskey.Events
Assembly: cs.temp.dll.dll
Syntax
public abstract class EventListener<TArg0> : EventListenerBase
Type Parameters
| Name | Description |
|---|---|
| TArg0 | first argument type |
Fields
event
The event to listen to.
Declaration
protected Event<TArg0> event
Field Value
| Type | Description |
|---|---|
| Event<TArg0> |
reaction
The reaction that occurs when the event is raised.
Declaration
protected EventListener<TArg0>.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)
Handler that is invoked when the event is raised
Declaration
protected virtual void Handle(TArg0 arg0)
Parameters
| Type | Name | Description |
|---|---|---|
| TArg0 | arg0 | first 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()