Hello,
Unity seems to be locking up when I use the StartCoroutine action and a GameObject with a script attached using an IEnumerator return type. Basically I'm trying to use StartCoroutine to download a scene bundle. I have a game object with a script called BundleMasterScript.cs with a download method like this:
public IEnumerator DoTheDownload()
{
Caching.CleanCache();
var download = new WWW("http://[some website].com/am_web/bundles/Android/version5scene5.txt");
yield return download;
var bundle = download.assetBundle;
Application.LoadLevel("scene5");
}
Then I use the StartCoroutine action to invoke the method - see attached image. (The action after the StartCoroutine is empty.)
Unity always locks up and I do not understand where or why it is happening - so I'm starting in Playmaker forum since this is my implementation. Is there something else I need to do here? I'm using Unity 4.6 and a relatively recent version of Playmaker (I think I updated it about 3 months ago)