I have two tasks:
I want to load a text file from the web, but I don’t understand how to write a class that has a static method that accepts a url and eventually returns the downloaded content. Namely, it is not clear to me how to turn this with an IEnumerator, considering that he does not return anything when executed.
I would like to load during game initialization. The test file will contain configs for everything (pass the player’s movement, etc.). And as far as I understand, running IEnumerator is not a blocking operation. How to implement?