Can you help me with this code. Not sure how to resolve the issue. New to Unity and C#.
void Awake()
{
isFirstRound = true;
StartCoroutine(LoadGameDataJson());
}
IEnumerator LoadGameDataJson()
{
Debug.Log("LoadGameDataJson() ::: HELLO WORLD");
WWW request = new WWW("http://dev.wisc-online.com/Prototypes/muscle_structure.json");
if (request.error == null || request.error == "")
{
}
else
{
Debug.Log("WWW error: " + request.error);
}
gameData = convertFromJSONToMyClass(request.text);
Debug.Log("gameData = " + gameData);
yield return request;
}
Thanks for the help!