La solicitud WWW / UnityWebRequest POST / GET no devolverá los últimos datos del servidor / url

Estoy creando una aplicación HoloLens usando Unity que tiene que tomar datos de una API REST y mostrarla. Actualmente estoy usando el tipo de datos WWW para obtener los datos y la declaración de retorno de rendimiento en una rutina que se llamará desde la función Update (). Cuando intento ejecutar el código, obtengo los datos más recientes de la API, pero cuando alguien introduce datos nuevos en la API, no obtiene automáticamente los datos más recientes en tiempo real y tengo quereiniciar la aplicación para ver los últimos datos. Mi código:

using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;

public class TextChange : MonoBehaviour {

    // Use this for initialization
    WWW get;
    public static string getreq;
    Text text;
    bool continueRequest = false;

    void Start()
    {
        StartCoroutine(WaitForRequest());
        text = GetComponent<Text>();
    }

    // Update is called once per frame
    void Update()
    {

    }

    private IEnumerator WaitForRequest()
    {
        if (continueRequest)
            yield break;

        continueRequest = true;

        float requestFrequencyInSec = 5f; //Update after every 5 seconds 
        WaitForSeconds waitTime = new WaitForSeconds(requestFrequencyInSec);

        while (continueRequest)
        {
            string url = "API Link goes Here";
            WWW get = new WWW(url);
            yield return get;
            getreq = get.text;
            //check for errors
            if (get.error == null)
            {
                string json = @getreq;
                List<MyJSC> data = JsonConvert.DeserializeObject<List<MyJSC>>(json);
                int l = data.Count;
                text.text = "Data: " + data[l - 1].content;
            }
            else
            {
                Debug.Log("Error!-> " + get.error);
            }

            yield return waitTime; //Wait for requestFrequencyInSec time
        }
    }

    void stopRequest()
    {
        continueRequest = false;
    }
}

public class MyJSC
{
    public string _id;
    public string author;
    public string content;
    public string _v;
    public string date;
}

Respuestas a la pregunta(1)

Su respuesta a la pregunta