Skip to main content

Class AddLateEvent

An event that will invoke handlers immediately if they are added after has been called

Inheritance​
System.Object
Mirage.Events.AddLateEventBase
Inherited Members​
Show

Mirage.Events.AddLateEventBase.HasInvoked

Mirage.Events.AddLateEventBase.MarkInvoked()

Mirage.Events.AddLateEventBase.Reset()

Syntax​
[Serializable]
public class AddLateEvent : AddLateEventBase, IAddLateEvent

Methods​

AddListener(Action)​

Declaration​
public void AddListener(Action handler)
Parameters​
TypeNameDescription
System.Actionhandler

RemoveListener(Action)​

Declaration​
public void RemoveListener(Action handler)
Parameters​
TypeNameDescription
System.Actionhandler

Invoke()​

Declaration​
public virtual void Invoke()

OnDestroyCleanup()​

Clears listeners, should be called from OnDestroy

Declaration​
public void OnDestroyCleanup()