Exemple #1
0
 private void LateUpdate()
 {
     // control the camera if cursor is locked or if left mouse clicking
     if (photonView.IsMine)
     {
         orbitCam.CameraUpdate(((!requestCursorLock && Input.GetMouseButton(0)) || isCursorLocked));
     }
 }