Right now, I have 3 scripts.
The first script is the "backend" that downloads a Json file from a URL, using UnityWebRequest and hence IEnumerator.
The second script is the "frontend" that simulates what a client may do to access the data.
Then the third script is the "API" that receives commands from the frontend and access the backend to return the required data.
Right now, the frontend is a MonoBehaviour, while the API and the backend are just a class.
However, since the API is not a MonoBehaviour, it cannot call StartCoroutine and thus cannot initialize the backend.
Right now, I have to call StartCoroutine in the front end, which kinda defeats the purpose of having the middle API.
Is there any workaround for this? Or can I do UnityWebRequest without a Coroutine?
