public void recallState(FlightCamera flightCam) { flightCam.minPitch = origMinPitch; flightCam.maxPitch = origMaxPitch; flightCam.pivotTranslateSharpness = origPivotTranslateSharpness; flightCam.minHeight = orgMinHeight; flightCam.minHeightAtMaxDist = origMinHeightAtMaxDist; flightCam.minHeightAtMinDist = origMinHeightAtMinDist; flightCam.minDistance = origMinDistance; flightCam.maxDistance = origMaxDistance; flightCam.startDistance = origStartDistance; flightCam.SetDistanceImmediate(origStartDistance); flightCam.mainCamera.nearClipPlane = origNearClipPlane; flightCam.transform.parent = origParent; }