Added Stuff

This commit is contained in:
juliuse98
2021-11-05 13:41:43 +01:00
parent 2868c0e89e
commit 908e69d4fe
21 changed files with 3143 additions and 158 deletions

View File

@@ -14,7 +14,7 @@ public class PlayerMouseLook : NetworkBehaviour
[SerializeField] private float neckStartAngle = 0f;
[SerializeField] private float minCameraAngle = -90f;
[SerializeField] private float neckLength = 0.2f;
private float neckLength = 0.2f;
[SerializeField] [Range(0.0f, 0.5f)] private float mouseSmoothTime = 0.001f;
[SerializeField] private bool lockCursor = true;
@@ -36,7 +36,7 @@ public class PlayerMouseLook : NetworkBehaviour
controller = GetComponent<CharacterController>();
playerCamera.gameObject.SetActive(true);
neckLength = Vector3.Distance(playerNeck.position,playerCamera.position);
if (lockCursor)
{