/** * Wait for download of the XML with altitude for one of LanLng building coordinate */ IEnumerator WaitForWWW(WWW www) { Main.CanRenderObjects = false; yield return(www); string result; //server response if (string.IsNullOrEmpty(www.error)) { result = www.text; ParseResult(result); } //error else { result = www.error; Logger.Print(result); } yield return(result); }