public static void getStringFromUrl(string url, Action <string> callback)
        {
            GameObject     go         = new GameObject();
            TextDownloader downloader = (TextDownloader)go.AddComponent(typeof(TextDownloader));

            downloader.StartDownload(url, callback);
        }
Example #2
0
 public XmlTextBlob(TextDownloader textDownloader)
 {
     this.textDownloader = textDownloader;
 }
Example #3
0
 public FlyweightShould()
 {
     this._textDownloader = Mock.Of <TextDownloader>();
 }
Example #4
0
 public XmlTextBlobFactory(TextDownloader textDownloader)
 {
     this.textDownloader = textDownloader;
 }