예제 #1
0
    void RequestDownloads()
    {
        ProgressUI.SetMessage("Downloading files", "Waiting for headers...");
        ProgressUI.Show();

        Debug.Log("Requesting downloads");
        LargeRPC download = new LargeRPC("InitialGameDownload");

        download.ListenForDownload();
        download.OnDownloadComplete += FinishedDownloadingFromHost;
        download.OnProgressUpdated  += UpdateProgressBar;

        CustomMessagingManager.SendNamedMessage("DownloadFilesRequest", NetworkingManager.Singleton.ServerClientId, Stream.Null);
    }
예제 #2
0
    public void Test_OpenToFileReception()
    {
        LargeRPC download = new LargeRPC("gameDownload");

        download.ListenForDownload();
    }