예제 #1
0
        public void RemoveActionRegister <T>(Action <T> action) where T : IEventData
        {
            var actionHandler   = new ActionEventHandler <T>(action);
            var handlerToRemove = FindRegisterToRemove(typeof(T), actionHandler.GetType());

            RemoveRegister(typeof(T), handlerToRemove);
        }
예제 #2
0
        public void AddActionRegister <T>(Action <T> action) where T : IEventData
        {
            var actionHandler = new ActionEventHandler <T>(action);

            AddRegister(typeof(T), actionHandler.GetType());
        }