/// <summary> Add a function to existed event. </summary> /// <param name="_topicName"> Topic name. </param> /// <param name="_function"> Method or lambda expression. </param> public static void AddListener <A, B>(Enum _topicName, Implementation.EventManager.CustomDelegate <A, B> _function) { EventManagerInstance.AddListener(_topicName, _function); }
/// <summary> Add a function to existed event. </summary> /// <param name="_topicName"> Topic name. </param> /// <param name="_function"> Method or lambda expression. </param> public static void AddListener(string _topicName, Implementation.EventManager.CustomDelegate _function) { EventManagerInstance.AddListener(_topicName, _function); }
/// <summary> Remove a function to existed event. </summary> /// <param name="_topicName"> Topic name. </param> /// <param name="_function"> Method to be removed. </param> public static void RemoveListener <A, B, C, D, E>(string _topicName, Implementation.EventManager.CustomDelegate <A, B, C, D, E> _function) { EventManagerInstance.RemoveListener(_topicName, _function); }
/// <summary> Remove a function to existed event. </summary> /// <param name="_topicName"> Topic name. </param> /// <param name="_function"> Method to be removed. </param> public static void RemoveListener(Enum _topicName, Implementation.EventManager.CustomDelegate _function) { EventManagerInstance.RemoveListener(_topicName, _function); }