From 8891b706414685e6b42095ba7aaffd336bd9708b Mon Sep 17 00:00:00 2001 From: Gregory Campbell Date: Thu, 17 Oct 2019 23:40:37 -0400 Subject: [PATCH] Implemented static y axis rotation when reset button is pressed --- Assets/Scripts/CameraController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/CameraController.cs b/Assets/Scripts/CameraController.cs index cc5ac14..a225f5f 100644 --- a/Assets/Scripts/CameraController.cs +++ b/Assets/Scripts/CameraController.cs @@ -59,6 +59,7 @@ public class CameraController : MonoBehaviour if(Input.GetKey(KeyCode.LeftShift)) { angleY = player.eulerAngles.y; + angleX = player.eulerAngles.x; } float cameraAngle = transform.eulerAngles.y;