Esempio n. 1
0
    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;
    }
Esempio n. 2
0
    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;
    }
Esempio n. 3
0
    public async void SaveAnchor()
    {
        anchorLerper.SubmitAnchor();
        Debug.Log("We are placing an anchor in to the cloud.");
        AnchorProperties anchorProperties = aRTapHandler.currentSelectedAnchor.GetComponent <AnchorProperties>();

        if (anchorProperties.anchorID != null)
        {
            await anchorConverter.UpdateExistingAnchor(anchorProperties.cloudSpatialAnchor, anchorProperties);

            Log.debug("Changing The Button Name");
            anchorProperties.button.GetComponentInChildren <TMP_Text>().text = anchorProperties.anchorLabel;
        }
        else
        {
            aRTapHandler.PlaceAnchor();
        }

        appController.EnterSelectMode();
        AnchorList.SetActive(true);
        AnchorOptionsUIElement.SetActive(false);
    }