public static void UnRegister(object target) { TargetEventHandler.UnRegister(target, null, null); }
public static void UnRegister(Component component) { TargetEventHandler.UnRegister(component); }
/// <summary> /// removes a callback from the target event handler by target object and event /// name. if name is null, the whole object will be unregistered. NOTES: 1) this /// method will disable _all_ events with the specified name and target object, /// regardless of the generic signature used. 2) be careful when omitting /// 'eventName': if doing so in a component 'OnDisable' method, all events for /// all other components on the target will be unregistered. /// </summary> public static void UnRegister(object target, string eventName, Action callback) { TargetEventHandler.UnRegister(target, eventName, callback); }