Example #1
0
 public void Update()
 {
     lock (_sync_obj) {
         while (0 < _event_queue.Count)
         {
             SessionEvent evt = _event_queue[0];
             _event_queue.RemoveAt(0);
             evt.Event();
         }
     }
 }
Example #2
0
        public void Update()
        {
            lock (_sync_obj) {
                while (0 < _event_queue.Count)
                {
                    SessionEvent evt = _event_queue[0];
                    _event_queue.RemoveAt(0);
                    evt.Event();
                }
            }

            if (Application.internetReachability != _networkReachability)
            {
                _networkReachability = Application.internetReachability;
                Close();
            }
        }