// Use this for initialization
        void Start()
        {
            // Create my Guidance object here that we'll use over and over later on
            g = ScriptableObject.CreateInstance("Guidance") as HexAPIParser.Guidance;
            // Load prices from remote URL
            WWW www = new WWW(priceURL);

            StartCoroutine(WaitForRequest(www, g));
            // Then move on to checking the file
            StartCoroutine(CheckFile());
        }
        // Wait on a web request
        IEnumerator WaitForRequest(WWW www, Guidance g)
        {
            yield return(www);

            if (www.error == null)
            {
                Debug.Log("WWW ok: ");
                Debug.Log("Passing www.data on to guidance loading");
                g.loadPrices(www.text);
                Debug.Log("Loaded www.data");
            }
            else
            {
                Debug.Log("WWW Error: " + www.error);
            }
            g.loadCollection(collectionCache);
            readyForBusiness = true;
        }
 // Wait on a web request
 IEnumerator WaitForRequest(WWW www, Guidance g)
 {
     yield return www;
     if (www.error == null) {
         Debug.Log ("WWW ok: ");
         Debug.Log ("Passing www.data on to guidance loading");
         g.loadPrices (www.text);
         Debug.Log ("Loaded www.data");
     } else {
         Debug.Log ("WWW Error: " + www.error);
     }
     g.loadCollection (collectionCache);
     readyForBusiness = true;
 }
 // Use this for initialization
 void Start()
 {
     // Create my Guidance object here that we'll use over and over later on
     g = ScriptableObject.CreateInstance ("Guidance") as HexAPIParser.Guidance;
     // Load prices from remote URL
     WWW www = new WWW (priceURL);
     StartCoroutine (WaitForRequest (www, g));
     // Then move on to checking the file
     StartCoroutine (CheckFile ());
 }