IEnumerator SelfieRoutine() { yield return(new WaitForSeconds(.5f)); var image = cameraCapture.CaptureImage(); yield return(new WaitForEndOfFrame()); spriteShowImage.SetImage(image); yield return(new WaitForEndOfFrame()); FindObjectsInShot(); yield return(new WaitForEndOfFrame()); }