Class AddLateEventUnity<T0, TEvent>
Version of with 1 argument Create a non-generic class inheriting from this to use in inspector. Same rules as
Inherited Members
Show
Mirage.Events.AddLateEvent<T0>._arg0
Mirage.Events.AddLateEvent<T0>.AddListener(System.Action<T0>)
Mirage.Events.AddLateEvent<T0>.RemoveListener(System.Action<T0>)
Mirage.Events.AddLateEventBase.HasInvoked
Mirage.Events.AddLateEventBase.MarkInvoked()
Mirage.Events.AddLateEventBase.Reset()
Syntax
[Serializable]
public abstract class AddLateEventUnity<T0, TEvent> : AddLateEvent<T0>, IAddLateEventUnity<T0>, IAddLateEvent<T0> where TEvent : UnityEvent<T0>, new()
Type Parameters
Name | Description |
---|---|
T0 | argument 0 |
TEvent | UnityEvent |
Methods
AddListener(UnityAction<T0>)
Declaration
public void AddListener(UnityAction<T0> handler)
Parameters
Type | Name | Description |
---|---|---|
UnityAction<T0> | handler |
RemoveListener(UnityAction<T0>)
Declaration
public void RemoveListener(UnityAction<T0> handler)
Parameters
Type | Name | Description |
---|---|---|
UnityAction<T0> | handler |
Invoke(T0)
Declaration
public override void Invoke(T0 arg0)
Parameters
Type | Name | Description |
---|---|---|
T0 | arg0 |
RemoveAllListeners()
Remove all non-persisent (ie created from script) listeners from the event.
Declaration
public void RemoveAllListeners()