DownloadAnchor() public method

public DownloadAnchor ( Room room, XString anchorName ) : bool
room Room
anchorName XString
return bool
コード例 #1
0
 /// <summary>
 /// Kicks off getting the datablob required to import the shared anchor.
 /// </summary>
 private void MakeAnchorDataRequest()
 {
     if (roomManager.DownloadAnchor(currentRoom, currentRoom.GetAnchorName(0)))
     {
         currentState = ImportExportState.DataRequested;
     }
     else
     {
         Debug.Log("Couldn't make the download request.");
         currentState = ImportExportState.Failed;
     }
 }
コード例 #2
0
        /// <summary>
        /// Kicks off getting the datablob required to import the shared anchor.
        /// When finished downloading, the RoomManager will raise RoomManagerListener_AnchorsDownloaded.
        /// </summary>
        private void MakeAnchorDataRequest()
        {
            if (roomManager.DownloadAnchor(currentRoom, currentRoom.GetAnchorName(0)))
            {
                currentState = ImportExportState.DataRequested;
            }
            else
            {
                Debug.LogError("Anchor Manager: Couldn't make the download request.");

                if (AnchorDebugText != null)
                {
                    AnchorDebugText.text += string.Format("\nCouldn't make the download request.");
                }

                currentState = ImportExportState.Failed;
            }
        }