예제 #1
0
        IEnumerator EndOfFrame()
        {
            while (true)
            {
                yield return(waitForEndOfFrame);

                lock (pendingEvents.SyncRoot)
                {
                    while (pendingEvents.Count > 0)
                    {
                        ARDeviceEvent phoneEvent = (ARDeviceEvent)pendingEvents.Dequeue();
                        ProcessEventAtEndOfFrame(phoneEvent);
                    }
                }
            }
        }
예제 #2
0
 private void ProcessEventAtEndOfFrame(ARDeviceEvent e)
 {
 }
예제 #3
0
 public void OnPhoneEvent(ARDeviceEvent e)
 {
     pendingEvents.Enqueue(e);
 }