Hi, I need to call a coroutine from a static function.
I don't know too much about coroutines... but I think I need it for loading a file using WWW.
I found [this][1], but I don't understand how to use it...
Here is my static function:
public static string getFile(string path){
www = new WWW(path);
return www.text;
}
Any helps?
[1]: http://forum.unity3d.com/threads/134546-C-Coroutines-in-static-functions
↧