public void Update() { lock (_sync_obj) { while (0 < _event_queue.Count) { SessionEvent evt = _event_queue[0]; _event_queue.RemoveAt(0); evt.Event(); } } }
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(); } }