Esempio n. 1
0
 public static void UnRegister(object target)
 {
     TargetEventHandler.UnRegister(target, null, null);
 }
Esempio n. 2
0
 public static void UnRegister(Component component)
 {
     TargetEventHandler.UnRegister(component);
 }
Esempio n. 3
0
 /// <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);
 }