// Use this for initialization void Start () { PlaneXML = new PlaneXMLv1 (); c = new NetworkCredential("*****@*****.**", "B8955E7C-C03F-4CF9-9B8D-C38C50FDA67A"); PlaneXML.Credentials = c; flight = PlaneXML.FlightInfo(flightID, true, true); StartCoroutine("refresh"); }
public IEnumerator Starts () { PlaneXML = new PlaneXMLv1 (); c = new NetworkCredential("*****@*****.**", "B8955E7C-C03F-4CF9-9B8D-C38C50FDA67A"); PlaneXML.Credentials = c; flight = PlaneXML.FlightInfo(flightID, true, true); print ("OK"); while(true) { StartCoroutine("refresh"); yield return new WaitForSeconds(2); } }