private void Update() { if (viewing) { // Inform all listeners about player input disabled _glc.NotifyCameraIsMoving(true); // Get starting position for camera lerping movementStartPosition = sceneCamera.transform.position; // Determine movement direction moveDirection = 1; // Temporarly deactivate camera offset _sceneCameraOffset.enabled = false; fromRotation = sceneCamera.transform.localRotation; if (!orthographicLerpMode) { _rotation = Quaternion.LookRotation(target.transform.position - _currentTarget.position, Vector3.up); _currentTarget = to; } else { _currentTarget = to; _currentTarget.position = target.position; } StartCoroutine(Waiting()); viewing = false; } }