Ejemplo n.º 1
0
        public static void CycleCameras()
        {
            var curIndex = Cameras.IndexOf(currentCamera);

            // stop current
            currentCamera?.Stop(false);

            if (curIndex == Cameras.Count - 1)
            {
                currentCamera = null;
                return;
            }

            // start next
            currentCamera = Cameras[curIndex + 1];
            currentCamera?.Start();
        }
Ejemplo n.º 2
0
 public static void Start(CinematicCamera camera)
 {
     currentCamera?.Stop(false);
     currentCamera = camera;
     currentCamera.Start();
 }