IEnumerator zoomIn() { Camera.main.orthographicSize = zoomSize; Camera.main.transform.position = new Vector3(xCenter, yCenter, -10); yield return(new WaitForSeconds(1.5f)); while (zoomSize >= 10) { Camera.main.transform.position = Vector3.MoveTowards(transform.position, gravBoiPoint, .5f); Camera.main.orthographicSize = zoomSize; yield return(new WaitForSeconds(.01f)); zoomSize -= .25f; } while (Camera.main.transform.position != gravBoiPoint) { Camera.main.transform.position = Vector3.MoveTowards(transform.position, gravBoiPoint, .5f); yield return(new WaitForSeconds(.01f)); } if (startUpdate == false) { controller.startUpdating(); if (laserMove.Length != 0) { for (int i = 0; i < laserMove.Length; i++) { LaserController laserCont = laserMove[i].GetComponent <LaserController>(); laserCont.startMovement(); } } } startUpdate = true; }