Пример #1
0
    public void GetAzureAnchor()
    {
        Debug.Log("\nSharingModuleScript.GetSharedAnchor()");
        Debug.Log("GenericNetworkManager.AzureAnchorID: " + GenericNetworkManager.instance.AzureAnchorID);

        anchorModuleScript.FindAzureAnchor(GenericNetworkManager.instance.AzureAnchorID);
    }
Пример #2
0
    /// <summary>
    /// Search the anchor with the ID saved on the cloud. It initialize a azure session as well.
    /// </summary>
    public async void findAnchor()
    {
        //AzureModule.GetAzureAnchorIdFromNetwork();
        AzureModule.GetAzureAnchorIdFromDisk();
        await AzureModule.StartAzureSession();

        if (AzureModule.currentAzureAnchorID != null || AzureModule.currentAzureAnchorID != "")
        {
            AzureModule.FindAzureAnchor();
        }
        else
        {
            Debug.LogError("ERROR no anchor ID found");
        }
    }