public void NotifyNoCatch(string name, IDictionary senderInfo = null)
        {
            EMAssert.OnMainThread();

            var obs = observers.GetValueOrDefault(name);

            if (obs == null)
            {
                return;
            }
            foreach (var ob in obs)
            {
                ob(senderInfo);
            }
        }
        public void Notify(string name, IDictionary senderInfo = null)
        {
            EMAssert.OnMainThread();

            var obs = observers.GetValueOrDefault(name);

            if (obs == null)
            {
                return;
            }
            foreach (var ob in obs)
            {
                try
                {
                    ob(senderInfo);
                }
                catch (Exception err)
                {
                    Debug.LogErrorFormat("Squelching error in NotificationCenter.Notify: {0}", err);
                }
            }
        }
Beispiel #3
0
 void FlushQueue_()
 {
     EMAssert.OnMainThread();
     queueIsDirty = true;
     Update();
 }