From 8c2779726eb6ddb18fb4d412c656f5baaa4f7bbe Mon Sep 17 00:00:00 2001 From: VirtualIce <56491625+CodeSample15@users.noreply.github.com> Date: Wed, 6 Apr 2022 23:03:16 -0400 Subject: [PATCH] Additional Debugging --- VideoGameClub2022/Assets/Main.unity | 8 ++++---- VideoGameClub2022/Assets/Scripts/Player/PlayerScript.cs | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/VideoGameClub2022/Assets/Main.unity b/VideoGameClub2022/Assets/Main.unity index 3ba35a9..909b7c1 100644 --- a/VideoGameClub2022/Assets/Main.unity +++ b/VideoGameClub2022/Assets/Main.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641258, b: 0.5748171, a: 1} + m_IndirectSpecularColor: {r: 0.44657826, g: 0.49641263, b: 0.57481676, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -982,9 +982,9 @@ MonoBehaviour: camera: {fileID: 47622665} cameraYOffset: 0.83 headBobIntensityX: 0 - headBobIntensityY: 0.5 - headBobSpeed: 1.39 - MovementSpeed: 4 + headBobIntensityY: 10 + headBobSpeed: 0.1 + MovementSpeed: 2 MouseSensitivity: 2.97 highlightShader: {fileID: 2100000, guid: 4a4a73a74bea09b4ca7fb69b714c34c8, type: 2} --- !u!1 &854681399 diff --git a/VideoGameClub2022/Assets/Scripts/Player/PlayerScript.cs b/VideoGameClub2022/Assets/Scripts/Player/PlayerScript.cs index d714066..cb07fe9 100644 --- a/VideoGameClub2022/Assets/Scripts/Player/PlayerScript.cs +++ b/VideoGameClub2022/Assets/Scripts/Player/PlayerScript.cs @@ -85,6 +85,7 @@ private void updateCamera() { //if the player is moving, bob the camera movementTimer += Time.deltaTime * headBobSpeed; //update movement based off of time + Debug.Log(movementTimer); headBobY = Mathf.Sin(movementTimer) * headBobIntensityY; } else @@ -92,7 +93,7 @@ private void updateCamera() headBobY = 0; movementTimer = 0; } - + //Debug.Log(headBobY); camera.transform.position = new Vector3(transform.position.x, transform.position.y + cameraYOffset, transform.position.z); camera.transform.eulerAngles = new Vector3(camX, camY, 0);