Exemplo n.º 1
0
 void Update()
 {
     // Update the player's y rotation based on which direction
     // camera is facing
     if (playerInteract.CanMove() && !pauseManager.Paused)
     {
         Quaternion yRotation = mouseLook.UpdateRotation();
         transform.localRotation = originalRotation * yRotation;
     }
 }