Class EventBus
Syntax
public static class EventBus
Methods
Add<TArgs>(EventHook, Action<TArgs>)
Declaration
public static void Add<TArgs>(EventHook hook, Action<TArgs> handler)
Parameters
Type Parameters
Invoke(EventHook)
Declaration
public static void Invoke(EventHook hook)
Parameters
Invoke(EventHookID, GameObject)
Declaration
public static void Invoke(EventHookID id, GameObject target)
Parameters
Invoke<TArgs>(EventHook, TArgs)
Declaration
public static void Invoke<TArgs>(EventHook hook, TArgs args)
Parameters
Type |
Name |
Description |
EventHook |
hook |
|
TArgs |
args |
|
Type Parameters
Invoke<TArgs>(EventHookID, GameObject, TArgs)
Declaration
public static void Invoke<TArgs>(EventHookID id, GameObject target, TArgs args)
Parameters
Type |
Name |
Description |
EventHookID |
id |
|
GameObject |
target |
|
TArgs |
args |
|
Type Parameters
Remove(EventHook, Delegate)
Declaration
public static void Remove(EventHook hook, Delegate handler)
Parameters