protected virtual void CameraInput() { if (m_fpsCamera == null) { return; } var Y = Input.GetAxis(m_rotateCameraYInput); var X = Input.GetAxis(m_rotateCameraXInput); m_fpsCamera.RotateCamera(X, Y); // tranform Character direction from camera if not KeepDirection //if (!keepDirection) // m_cc.UpdateTargetDirection(m_fpsCamera != null ? m_fpsCamera.transform : null); // rotate the character with the camera while strafing RotateWithCamera(m_fpsCamera != null ? m_fpsCamera.transform : null); }