Example #1
0
 public void enable2D(bool enabled)
 {
     if (enabled)
     {
         cameraHandler.resetCams();
         resetUI();
         annotationInput.gameObject.SetActive(false);
         createAnnotationButton.gameObject.SetActive(false);
         searchInput.gameObject.SetActive(true);
         toggleARButton.gameObject.SetActive(true);
         recenterButton.gameObject.SetActive(true);
         inAR = false;
         menuHandler.CloseMenu();
     }
     else
     {
         createAnnotationButton.gameObject.SetActive(true);
         toggleARButton.gameObject.SetActive(false);
         recenterButton.gameObject.SetActive(false);
         searchInput.gameObject.SetActive(false);
         inAR = true;
     }
     if (isHiking && inAR && !enabled)
     {
         transitionHikePanel.TriggerTransition();
     }
     quadTreeCameraMovement.enabled = enabled;
     cameraHandler.expand2D(enabled);
 }