public void RemoveAction <A, B, C>(string eventName, DEventMethod <A, B, C> method) { Remove(new MethodInfoObject { Target = method.Target, Method = method.Method }, eventName); }
public void RemoveAction <A, B, C>(DEventMethod <A, B, C> method) { Remove(new MethodInfoObject { Target = method.Target, Method = method.Method }); }
public void AddAction <A, B, C, D, E, F>(string eventName, DEventMethod <A, B, C, D, E, F> method) { Add(new MethodInfoObject { Target = method.Target, Method = method.Method }, eventName); }
/// <summary> /// Добавить кастомный метод /// </summary> /// <param name="method">Слушатель</param> public void AddAction <A, B, C, D, E, F>(DEventMethod <A, B, C, D, E, F> method) { Add(new MethodInfoObject { Target = method.Target, Method = method.Method }); }
/// <summary> /// Добавить кастомный метод /// </summary> /// <param name="method">Слушатель</param> public void AddAction <T>(DEventMethod <T> method) { Add(new MethodInfoObject { Target = method.Target, Method = method.Method }); }
public void AddAction(string eventName, DEventMethod method) { Add(new MethodInfoObject { Target = method.Target, Method = method.Method }, eventName); }