Ejemplo n.º 1
0
 private void CameraInput()
 {
     if (!isLockedOn)
     {
         //mouse input for the camera
         currentX += Input.GetAxis("Mouse X");
         currentY += Input.GetAxis("Mouse Y");
         playerCam.MouseOrbit(currentX, currentY); //applies orbit
     }
     else
     {
         playerCam.LockedOnCam(); //applys lock on cam logic
     }
 }
 private void CamerInput()
 {
     if (!pManager.IsPaused)
     {
         if (!pManager.isLockedOn)
         {
             float h = Input.GetAxis("Mouse X") * 2;
             float v = Input.GetAxis("Mouse Y") * 2;
             pCamera.MouseOrbit(h, v);
         }
         else
         {
             pCamera.LockedOnCam();
         }
     }
 }