// Update is called once per frame
 void Update()
 {
     headerText.text   = "Camera: " + cam.name;
     positionText.text = "Position: " + cam.transform.position.ToString();
     stateText.text    = "State: " + stateController.GetCameraState().ToString() + ", " + stateController.GetOrientationState();
     orbitText.text    = "Orbit input: " + camInput.GetOrbitInput().ToString();
 }
 /// <summary>Updates the current orbit angles tracker based on the current camera state.</summary>
 private void UpdateCurrentOrbitAngles()
 {
     if (stateController.GetCameraState() == CameraState.OrbitingTarget)
     {
         currentOrbitAngles = GetNewOrbitAngles(currentOrbitAngles, input.GetOrbitInput());
     }
     else
     {
         Vector2 euler = (Vector2)cam.transform.eulerAngles;
         if (euler.x > 180)
         {
             euler.x -= 360;                //make angles below horizontal negative so it's in line with orbit angles
         }
         currentOrbitAngles = euler;
     }
 }