/// <summary> /// 让摄像机看向某个固定位置,fDuration为0则不做移动动画 /// </summary> /// <param name="targetPos"></param> /// <param name="onCameraMoveDone">当移动动画结束时的回调,fDuration为0时不会调用</param> /// <param name="fDuration">移动动画时长</param> public void LookPos(Vector3 targetPos, CameraDefine.CameraMoveDoneCallback onCameraMoveDone = null, float fDuration = CameraDefine.m_fDefaultCameraMoveTime) { if (m_CurrentCamera == m_ThirdPersonCamera && m_ThirdPersonCamera != null) { m_ThirdPersonCamera.LookPos(targetPos, onCameraMoveDone, fDuration); } }