static public void GetHTML(string uri, hamyes c, MonoBehaviour mono) { onhamyes = yes; onhamno = no; onhamyes += c; mono.StartCoroutine(MyLoadPage_1(uri, onhamyes)); }
static IEnumerator MyLoadPage(string url, hamyes c) { WWW www = new WWW(url); yield return(www); if (www.error == null) { STR = www.text; c(); } else { STR = null; onhamno(); } }
static IEnumerator MyLoadPage_1(string url, hamyes c) { WWW www = new WWW(url); yield return(www); if (www.error == null) { STR = www.text; c(); } else { IS_ERROR = true; STR = ""; c(); } }