Show / Hide Table of Contents

Class EventListener

Argument-less event listener.

Inheritance
System.Object
EventListenerBase
EventListener
Namespace: FasterGames.Whiskey.Events
Assembly: cs.temp.dll.dll
Syntax
public abstract class EventListener : EventListenerBase

Fields

event

The event to listen to.

Declaration
protected Event event
Field Value
Type Description
Event

reaction

The reaction that occurs when the event is raised.

Declaration
protected EventListener.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()

Handler that is invoked when the event is raised

Declaration
protected virtual void Handle()

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 ©