Class EventBus
Syntax
public static class EventBus
Methods
Register<TArgs>(EventHook, Action<TArgs>)
Declaration
public static void Register<TArgs>(EventHook hook, Action<TArgs> handler)
Parameters
Type Parameters
Trigger(String, GameObject)
Declaration
public static void Trigger(string name, GameObject target)
Parameters
Trigger(EventHook)
Declaration
public static void Trigger(EventHook hook)
Parameters
Trigger<TArgs>(String, GameObject, TArgs)
Declaration
public static void Trigger<TArgs>(string name, GameObject target, TArgs args)
Parameters
Type Parameters
Trigger<TArgs>(EventHook, TArgs)
Declaration
public static void Trigger<TArgs>(EventHook hook, TArgs args)
Parameters
Type |
Name |
Description |
EventHook |
hook |
|
TArgs |
args |
|
Type Parameters
Unregister(EventHook, Delegate)
Declaration
public static void Unregister(EventHook hook, Delegate handler)
Parameters