Beispiel #1
0
        public void Off(string eventName)
        {
            var @event = SystemEventHelper.FromString(eventName);

            if (@event != SystemEvents.Max)
            {
                Off(@event);
            }
            else
            {
                if (!_handlers.ContainsKey(eventName))
                {
                    Debug.LogErrorFormat("{0} is not assigned anywhere (Maybe mistyping eventName??)", eventName);
                }
                else
                {
                    _handlers.Remove(eventName);
                }
            }
        }
Beispiel #2
0
 public void On(string eventName, Action <Exception> callback)
 {
     On(SystemEventHelper.FromString(eventName), callback);
 }