Show / Hide Table of Contents

Class EventListener<TArg0, TArg1>

Two argument event listener.

Inheritance
System.Object
EventListenerBase
EventListener<TArg0, TArg1>
Namespace: FasterGames.Whiskey.Events
Assembly: cs.temp.dll.dll
Syntax
public abstract class EventListener<TArg0, TArg1> : EventListenerBase
Type Parameters
Name Description
TArg0

first argument type

TArg1

second argument type

Fields

event

The event to listen to.

Declaration
protected Event<TArg0, TArg1> event
Field Value
Type Description
Event<TArg0, TArg1>

reaction

The reaction that occurs when the event is raised.

Declaration
protected EventListener<TArg0, TArg1>.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
EventListenerBase.Event

Reaction

The reaction that occurs when the event is raised.

Declaration
public override UnityEventBase Reaction { get; }
Property Value
Type Description
UnityEventBase
Overrides
EventListenerBase.Reaction
Remarks

Only raised if the Game Object this is attached to is active.

Methods

Handle(TArg0, TArg1)

Handler that is invoked when the event is raised

Declaration
protected virtual void Handle(TArg0 arg0, TArg1 arg1)
Parameters
Type Name Description
TArg0 arg0

first argument

TArg1 arg1

second 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()
In This Article
Back to top Copyright FasterGames ©