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(); }
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()); }