Exemplo n.º 1
0
 public void CapturePhoto()
 {
     if (isTakingPhoto)
     {
         return;
     }
     gameObject.SetActive(true);
     _camera.transform.position = CameraToPhotograph.transform.position;
     _camera.transform.rotation = CameraToPhotograph.transform.rotation;
     _camera.farClipPlane       = CameraToPhotograph.farClipPlane;
     _camera.nearClipPlane      = CameraToPhotograph.nearClipPlane;
     _camera.fieldOfView        = CameraToPhotograph.fieldOfView;
     cameraFlash.FlashImage(flashTime, OnFinishedTakingPhoto);
     isTakingPhoto = true;
     StartCoroutine(ExportUtils.ExportPhotoToCameraRoll(_camera, AlbumName));
 }