public static void Remove(string message, SteamVR_Utils.Event.Handler action) { SteamVR_Utils.Event.Handler handler = SteamVR_Utils.Event.listeners[message] as SteamVR_Utils.Event.Handler; if (handler != null) { SteamVR_Utils.Event.listeners[message] = (SteamVR_Utils.Event.Handler)Delegate.Remove(handler, action); } }
public static void Send(string message, params object[] args) { SteamVR_Utils.Event.Handler handler = SteamVR_Utils.Event.listeners[message] as SteamVR_Utils.Event.Handler; if (handler != null) { handler(args); } }
public static void Listen(string message, SteamVR_Utils.Event.Handler action) { SteamVR_Utils.Event.Handler handler = SteamVR_Utils.Event.listeners[message] as SteamVR_Utils.Event.Handler; if (handler != null) { SteamVR_Utils.Event.listeners[message] = (SteamVR_Utils.Event.Handler)Delegate.Combine(handler, action); return; } SteamVR_Utils.Event.listeners[message] = action; }