public void UseThirdPersonCamera()
 {
     thirdPersonCamera.gameObject.SetActive(true);
     firstPersonCamera.gameObject.SetActive(false);
     thirdPersonCamera.transform.localRotation = firstPersonCamera.transform.localRotation;
     _curCamera = thirdPersonCamera;
 }
 private void Awake()
 {
     Instance          = this;
     firstPersonCamera = GetComponentInChildren <FirstPersonCamera>();
     thirdPersonCamera = GetComponentInChildren <ThirdPersonCamera>();
     firstPersonCamera.gameObject.SetActive(false);
     thirdPersonCamera.gameObject.SetActive(false);
     _init = true;
 }
        //编辑器回放专用
        public void runScript(CameraMoveData data, bool editorMode = false)
        {
            _editorMode  = editorMode;
            _curPathData = data;

            _oraginCamera = CameraManager.Instance.CurCamera;
            if (_oraginCamera.CameraType == MTBCameraType.Third)
            {
                CameraManager.Instance.UseFirstPersonCamera();
            }
            _curControlCamera = CameraManager.Instance.CurCamera;

            _stepSum = _curPathData.steps.ToArray().Length;
            startPosition();
            _workMark = true;
            MTBUserInput.Instance.SetJoyStickActive(false);
            UIManager.Instance.closeUI(UITypes.MAIN_UI);
#if UNITY_EDITOR
            MTBKeyboard.setEnable(false);
#endif
        }