예제 #1
0
 static public void GetHTML(string uri, hamyes c, MonoBehaviour mono)
 {
     onhamyes  = yes;
     onhamno   = no;
     onhamyes += c;
     mono.StartCoroutine(MyLoadPage_1(uri, onhamyes));
 }
예제 #2
0
    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();
        }
    }
예제 #3
0
    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();
        }
    }