private IEnumerator ClientMonitorScreenSize() { while (true) { yield return(null); if (Screen.width != currentScreenWidth || Screen.height != currentScreenHeight) { currentScreenWidth = Screen.width; currentScreenHeight = Screen.height; Parsec.ClientSetDimensions(0, (uint)currentScreenWidth, (uint)currentScreenHeight, 1); } } }