예제 #1
0
 public static void Stop(string reason = null, bool stopFollow = true)
 {
     if (stopFollow)
     {
         FollowMe.StopFollow(reason);
     }
     currentCamera?.Stop();
     currentCamera = null;
 }
예제 #2
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();
        }
예제 #3
0
 public static void Start(CinematicCamera camera)
 {
     currentCamera?.Stop(false);
     currentCamera = camera;
     currentCamera.Start();
 }