Ejemplo n.º 1
0
    /**
     * Downloads the last object processed on the quick stereo server
     */
    public void LoadFromServer()
    {
        GameObject obj = (GameObject)Instantiate(Resources.Load("Prefabs/DownloadServer"));

        _downloadServer = obj.GetComponent <DownloadServer>();
        _downloadServer.ResetSuccess();
        _downloadServer.Download("model");
        _download = true;
    }
Ejemplo n.º 2
0
 void Update()
 {
     // Object was downloaded from the quick stereo server
     if (_download && _downloadServer != null)
     {
         // Displays the object if the download was succesful
         if (_downloadServer.Success())
         {
             _download = false;
             _downloadServer.ResetSuccess();
             LoadDownloadedObj();
         }
     }
 }