예제 #1
0
    public IEnumerator Request(RequestParam param)
    {
        WWW www = new WWW(TextUrl, param.Request);

        yield return(www);

        if (www.isDone && www.error == null)
        {
            param.Response = www.text;
            //Debug.Log(TextUrl);
            //Debug.Log(www.text);
            param.callBack(param);
        }
        else
        {
            Debug.Log("err:" + www.error == null ? "www not done.":www.error);
        }
    }