so i have this coroutine i want to start. but the fucntion i start it from has to be static.
and then it throws me this error. What is the right way to fix this?
heres my code:
public class remoteDebug : MonoBehaviour {
static string Debug_URL = "http://www.url.com/submitDebug.php";
public static void log (string text)
{
StartCoroutine(handleLog(text));
}
static IEnumerator handleLog(string info)
{
string send_url = Debug_URL + "info=" + info;
WWW loginReader = new WWW(send_url);
yield return loginReader;
Debug.Log (loginReader.text);
if (loginReader.error != null)
{
//good
}
else
{
//bad
}
}
}