FarmObject.Query C# (CSharp) Method

Query() private method

private Query ( string URL ) : IEnumerator
URL string
return IEnumerator
    IEnumerator Query(string URL)
    {
        //print ("New query about to be made at: " + URL);
        WWW www = new WWW (URL);
        yield return www;
        node = JSON.Parse (www.text);
        // Check for Empty Node
        if (isEmpty (node)) {
            Debug.Log ("Query returned an empty object");
            yield return null;
        }
        myURL = URL;
        Setup ();
    }