コード例 #1
0
        private void ResetAllCameras()
        {
            if (splineCam != null)
            {
                if (splineCam.MainCamera.IsActive)
                {
                    splineCam.ExitCameraView();
                }
                if (splineCam.Nodes.Count > 0)
                {
                    splineCam.Nodes.Clear();
                }
            }
            if (selector != null && selector.MainCamera.IsActive)
            {
                selector.ExitCameraView();
            }

            World.RenderingCamera = null;
            Function.Call(Hash.DESTROY_ALL_CAMS, false);
            splineCam = new SplineCamera();
            selector  = new PositionSelector(Vector3.Zero, Vector3.Zero);
        }