Implemented static y axis rotation when reset button is pressed
This commit is contained in:
@@ -59,6 +59,7 @@ public class CameraController : MonoBehaviour
|
|||||||
if(Input.GetKey(KeyCode.LeftShift))
|
if(Input.GetKey(KeyCode.LeftShift))
|
||||||
{
|
{
|
||||||
angleY = player.eulerAngles.y;
|
angleY = player.eulerAngles.y;
|
||||||
|
angleX = player.eulerAngles.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
float cameraAngle = transform.eulerAngles.y;
|
float cameraAngle = transform.eulerAngles.y;
|
||||||
|
|||||||
Reference in New Issue
Block a user