Example #1
0
 void Start()
 {
     spatialAnchorManager = FindObjectOfType <SpatialAnchorManager>();
     anchorConverter      = FindObjectOfType <AnchorConverter>();
     aRTapHandler         = FindObjectOfType <ARTapHandler>();
     anchorLerper         = FindObjectOfType <AnchorLerper>();
 }
Example #2
0
    void Start()
    {
        anchorManager       = FindObjectOfType <AnchorManager>();
        aRTapHandler        = FindObjectOfType <ARTapHandler>();
        appController       = FindObjectOfType <AppController>();
        anchorLerper        = FindObjectOfType <AnchorLerper>();
        renameAnchorHandler = FindObjectOfType <RenameAnchorHandler>();

        anchorConverter = FindObjectOfType <AnchorConverter>();
    }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     anchorConverter  = FindObjectOfType <AnchorConverter>();
     aRRaycastManager = GetComponent <ARRaycastManager>();
     aRAnchorManager  = GetComponent <ARAnchorManager>();
     eventSystem      = FindObjectOfType <EventSystem>();
     anchorManager    = FindObjectOfType <AnchorManager>();
     appController    = FindObjectOfType <AppController>();
     materialSwitcher = FindObjectOfType <MaterialSwitcher>();
     anchorLerper     = FindObjectOfType <AnchorLerper>();
 }
    public void ManageButton()
    {
        appController.appMode = AppMode.Select;
        navigationArrow.SetActive(false);
        AnchorList.SetActive(true);
        AnchorOptions.SetActive(false);
        anchorInfoText.gameObject.SetActive(true);
        distanceText.gameObject.SetActive(false);
        addAnchorButton.SetActive(true);
        AnchorLerper anchorLerper = FindObjectOfType <AnchorLerper>();

        if (anchorLerper.hasAnchorSelected)
        {
            anchorLerper.SubmitAnchor();
        }
        waitingToDetectAnchors = false;
    }
    public async void ExploreButton()
    {
        appController.EnterExploreMode();
        AnchorList.SetActive(true);
        AnchorOptions.SetActive(false);
        anchorInfoText.gameObject.SetActive(false);
        distanceText.gameObject.SetActive(true);
        addAnchorButton.SetActive(false);
        AnchorLerper anchorLerper = FindObjectOfType <AnchorLerper>();

        if (anchorLerper.hasAnchorSelected)
        {
            anchorLerper.SubmitAnchor();
        }
        timeSpentWaiting       = 0f;
        waitingToDetectAnchors = true;
    }