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