IEnumerator Start () {
string str = "file://" + Application.streamingAssetsPath+ "/a.txt";
WWW www = new WWW(str);
yield return www;
if (www.isDone)
{
GetComponent<GUIText>().text=www.text;
}
}
IEnumerator Start () {
string str = "file://" + Application.streamingAssetsPath+ "/a.txt";
WWW www = new WWW(str);
yield return www;
if (www.isDone)
{
GetComponent<GUIText>().text=www.text;
}
}
转载于:https://www.cnblogs.com/Feiyuzhu/p/4955907.html