Ejemplo n.º 1
0
 /// <summary>
 /// 让摄像机看向某个Obj,fDuration为0则不做移动动画
 /// </summary>
 /// <param name="target"></param>
 /// <param name="onCameraMoveDone">当移动动画结束时的回调,fDuration为0时不会调用</param>
 /// <param name="fDuration">移动动画时长</param>
 public void LookTarget(Obj target, CameraDefine.CameraMoveDoneCallback onCameraMoveDone = null, float fDuration = CameraDefine.m_fDefaultCameraMoveTime)
 {
     if (m_CurrentCamera == m_ThirdPersonCamera && m_ThirdPersonCamera != null)
     {
         m_ThirdPersonCamera.LookTarget(target, onCameraMoveDone, fDuration);
     }
 }