예제 #1
0
 public void Poll()
 {
     // We got the desktop things in our constructor so pass them here
     if (firstPoll)
     {
         firstPoll = false;
         foreach (WindowCapture window in windowCapturers.Values)
         {
             if (OnAddWindow != null)
             {
                 OnAddWindow(window);
             }
         }
     }
     windowsHolder.UpdateWindows();
 }
예제 #2
0
 public IEnumerator Poll()
 {
     // We got the desktop things in our constructor so pass them here
     if (firstPoll)
     {
         firstPoll = false;
         foreach (WindowCapture window in windowCapturers.Values)
         {
             if (OnAddWindow != null)
             {
                 OnAddWindow(window);
             }
         }
     }
     windowsHolder.UpdateWindows();
     yield return(new WaitForEndOfFrame());
 }