private IEnumerator WaitForRequest(WWW www, IRequestListener requestListener) { yield return(www); // check for errors if (www.text.Contains("nginx")) { requestListener.Error("RAGE Analytics offline"); } else if (www.text.Contains("ENOTFOUND")) { requestListener.Error("SurveyManager offline"); } else { if (www.error == null && !www.text.Contains("error")) { requestListener.Result(www.text); } else { requestListener.Error(www.text); } } }
private void WaitForRequest(WWW www, IRequestListener requestListener) { if (www.error == null) { requestListener.Result (www.text); } else { requestListener.Error (www.error); } }
private IEnumerator WaitForRequest (WWW www, IRequestListener requestListener) { yield return www; // check for errors if (www.error == null) { requestListener.Result(www.text); } else { Debug.LogError(www.error); requestListener.Error(www.error); } }
private void WaitForRequest(WWW www, IRequestListener requestListener) { if (www.error == null) { requestListener.Result(www.text); } else { requestListener.Error(www.error); } }
private IEnumerator WaitForRequest(WWW www, IRequestListener requestListener) { yield return(www); // check for errors if (www.error == null) { requestListener.Result(www.text); } else { Debug.LogError(www.error); requestListener.Error(www.error); } }