private IEnumerator GetPage2(BookPosition book) { string url = generateUrl(book); WWW www = new WWW(url); yield return www; string text=TextDownload.ParsePage(www.text); OnPage (text); }
private static string generateUrl(BookPosition book) { string volume = book.volume.ToString (); if (book.volume < 10) volume = "0" + volume; string fullUrl = url + "?" + book.room + "-w" + book.wall + "-s" + book.shelf + "-v" + volume + ":" + book.page; Debug.Log (fullUrl); return fullUrl; }
private IEnumerator GetPage2(BookPosition book) { string url = generateUrl(book); WWW www = new WWW(url); yield return(www); string text = TextDownload.ParsePage(www.text); OnPage(text); }
private IEnumerator GetTitle2(BookPosition book) { book.page = 1; string url = TextDownload.generateUrl(book); WWW www = new WWW(url); yield return(www); string text = TextDownload.ParseTitle(www.text); OnTitle(text); }
private static string generateUrl(BookPosition book) { string volume = book.volume.ToString(); if (book.volume < 10) { volume = "0" + volume; } string fullUrl = url + "?" + book.room + "-w" + book.wall + "-s" + book.shelf + "-v" + volume + ":" + book.page; Debug.Log(fullUrl); return(fullUrl); }
private BookPosition[] ComputeBookPosition(Dictionary <string, InstrumentPosition> instruPosDico) { var bookPositionDico = new Dictionary <string, BookPosition>(); foreach (InstrumentPosition instruPos in instruPosDico.Values) { BookPosition pos; if (!bookPositionDico.TryGetValue(instruPos.Book, out pos)) { var newPos = new BookPosition(instruPos); bookPositionDico.Add(instruPos.Book, newPos); continue; } Pnl.ComputeBookPosition(pos, instruPos); } return(bookPositionDico.Values.ToArray()); }
protected void GetTitle(BookPosition book) { StartCoroutine(GetTitle2(book)); }
private IEnumerator GetTitle2(BookPosition book) { book.page = 1; string url = TextDownload.generateUrl(book); WWW www = new WWW(url); yield return www; string text=TextDownload.ParseTitle(www.text); OnTitle (text); }
protected void GetTitle(BookPosition book) { StartCoroutine(GetTitle2 (book)); }