JUtils
A unity utilities library
JUtils.BaseEventListener< TListener, TArgument > Class Template Reference

The base class for event channel based listeners. Recommended for UI or if the GO only has one event listener, otherwise consider using the BaseEventChannel<T> directly More...

Inheritance diagram for JUtils.BaseEventListener< TListener, TArgument >:
Collaboration diagram for JUtils.BaseEventListener< TListener, TArgument >:

Public Member Functions

void AddListener (Action< TArgument > listener)
 Add a listener to the internal eventListener of this class More...
 
void RemoveListener (Action< TArgument > listener)
 Remove a listener to the internal eventListener of this class More...
 

Detailed Description

The base class for event channel based listeners. Recommended for UI or if the GO only has one event listener, otherwise consider using the BaseEventChannel<T> directly

When inheriting this class, it is recommended to leave the body empty

Type Constraints
TListener :BaseEventChannel<TArgument> 

Member Function Documentation

◆ AddListener()

void JUtils.BaseEventListener< TListener, TArgument >.AddListener ( Action< TArgument >  listener)
inline

Add a listener to the internal eventListener of this class

◆ RemoveListener()

void JUtils.BaseEventListener< TListener, TArgument >.RemoveListener ( Action< TArgument >  listener)
inline

Remove a listener to the internal eventListener of this class


The documentation for this class was generated from the following file: