Пример #1
0
    IEnumerator processPing(string url, Action <bool> onComplete)
    {
        IEnumerator query = HalperWeb.query(url, delegate(string answer)
        {
            onComplete(true);
        },
                                            delegate()
        {
            onComplete(false);
        });

        while (query.MoveNext())
        {
            yield return(null);
        }
    }
Пример #2
0
 public void query(string url, Action <string> onComplete, Action onTimeout, float timeout = 3f)
 {
     StartCoroutine(HalperWeb.query(url, onComplete, onTimeout, timeout));
 }