Commented out the reset camera button since that functionality may be useless in the long run

This commit is contained in:
Gregory Campbell
2019-11-10 20:37:51 -05:00
parent 8891b70641
commit e99156177b
+3 -2
View File
@@ -19,7 +19,7 @@ public class CameraController : MonoBehaviour
}
pivot.position = player.position;
pivot.parent = player.transform;
pivot.parent = null;
Cursor.visible = !Cursor.visible;
Cursor.lockState = CursorLockMode.Locked;
@@ -56,11 +56,12 @@ public class CameraController : MonoBehaviour
float angleY = pivot.eulerAngles.y;
float angleX = pivot.eulerAngles.x;
/* Code to force the camera behind the player
if(Input.GetKey(KeyCode.LeftShift))
{
angleY = player.eulerAngles.y;
angleX = player.eulerAngles.x;
}
} */
float cameraAngle = transform.eulerAngles.y;