void LateUpdate() { if (forcedDone == false) { if (Input.anyKeyDown || Time.timeSinceLevelLoad > (totalTime - 0.7f)) { forcedDone = true; AutoFade.FadeOverCamera(Color.white); } } if (Time.timeSinceLevelLoad < (totalTime - transition)) { transform.position += Time.deltaTime * ( transform.right * slideAmt.x + transform.up * slideAmt.y + transform.forward * slideAmt.z); transform.Rotate(Time.deltaTime * spinAmt.x, Time.deltaTime * spinAmt.y, Time.deltaTime * spinAmt.z); lerpAnchor.transform.position = transform.position; lerpAnchor.transform.rotation = transform.rotation; } else { float interpAmt = (Time.timeSinceLevelLoad - (totalTime - transition)) / transition; transform.position = Vector3.Lerp(lerpAnchor.transform.position, skyCamMatch.transform.position, interpAmt); transform.rotation = Quaternion.Slerp(lerpAnchor.transform.rotation, skyCamMatch.transform.parent.rotation, interpAmt); } skyCamMatch.transform.rotation = transform.rotation; }