UnityEssentials
Small but useful tools and features for Unity
Public Member Functions | Public Attributes | List of all members
UnityEngine.DoN Class Reference

Allows the limitation of how many times an event can be executed. More...

Collaboration diagram for UnityEngine.DoN:
Collaboration graph

Public Member Functions

 DoN (UnityAction unityAction, int invokingTimes)
 
 DoN (UnityEvent calledEvent, int invokingTimes)
 
void Invoke ()
 Invokes all registered events callbacks (runtime and persistent). More...
 

Public Attributes

int invokingTimes = 1
 The amount of times the events can be invoked. More...
 
int invokedTimes = 0
 How many times the events have been invoked. More...
 
UnityEvent calledEvent
 The events called at every invoke. More...
 

Detailed Description

Allows the limitation of how many times an event can be executed.

Definition at line 10 of file DoN.cs.

Constructor & Destructor Documentation

◆ DoN() [1/2]

UnityEngine.DoN.DoN ( UnityAction  unityAction,
int  invokingTimes 
)

Definition at line 27 of file DoN.cs.

◆ DoN() [2/2]

UnityEngine.DoN.DoN ( UnityEvent  calledEvent,
int  invokingTimes 
)

Definition at line 35 of file DoN.cs.

Member Function Documentation

◆ Invoke()

void UnityEngine.DoN.Invoke ( )

Invokes all registered events callbacks (runtime and persistent).

Definition at line 44 of file DoN.cs.

Member Data Documentation

◆ calledEvent

UnityEvent UnityEngine.DoN.calledEvent

The events called at every invoke.

Definition at line 25 of file DoN.cs.

◆ invokedTimes

int UnityEngine.DoN.invokedTimes = 0

How many times the events have been invoked.

Definition at line 20 of file DoN.cs.

◆ invokingTimes

int UnityEngine.DoN.invokingTimes = 1

The amount of times the events can be invoked.

Definition at line 16 of file DoN.cs.


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