IEnumerator VerifySceneRestart() { UnityWebRequest www = UnityWebRequest.Get(Consts.playStopURL); yield return(www.SendWebRequest()); if (www.downloadHandler.text.Contains("1")) { //System.Threading.Thread.Sleep(2000); StartCoroutine(VerifySceneRestart()); } else { StartCoroutine(transformScript.Turnitoff()); } }