IEnumerator EndOfFrame() { while (true) { yield return(waitForEndOfFrame); lock (pendingEvents.SyncRoot) { while (pendingEvents.Count > 0) { ARDeviceEvent phoneEvent = (ARDeviceEvent)pendingEvents.Dequeue(); ProcessEventAtEndOfFrame(phoneEvent); } } } }
private void ProcessEventAtEndOfFrame(ARDeviceEvent e) { }
public void OnPhoneEvent(ARDeviceEvent e) { pendingEvents.Enqueue(e); }