using UnityEngine;
using System.Collections;
public class demolog : MonoBehaviour {
// Make a request with an invalid url
public string url = "http://o00ontc.freevnn.com/MyGame/login.php";
IEnumerator Start() {
WWW www = new WWW(url);
yield return www;
if (!string.IsNullOrEmpty([www.error](http://www.error)))
Debug.Log([www.error);](http://www.error);)
Debug.Log([www.text);](http://www.text);)
}
}
Debug.Log [(www.text)](http://www.text) return
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
UnityEngine.Debug:Log(Object)
c__Iterator0:MoveNext() (at Assets/demolog.cs:13)
Tại sao ?
2310777–155698–demolog.cs (358 Bytes)
What do you mean? You’ve asked WWW to access a file on your server. Your server has returned an html file. What do you expect/want?