标签:ons complete err deb erro sys collect error: mon
using UnityEngine; using System.Collections;
public class testProgress : MonoBehaviour {
void Start () { StartCoroutine (getWWW()); } IEnumerator getWWW(){ WWW www = new WWW ("http://192.168.1.106/app/s01.mp3"); string progress; while(!www.isDone){ progress=(((int)(www.progress * 100)) % 100) + "%"; Debug.Log (progress); yield return 1; } if(www.error!=null){ Debug.Log ("loading error:"+www.url); }else{ progress="100%"; Debug.Log (progress); //enter complete code } } }
标签:ons complete err deb erro sys collect error: mon
原文地址:http://www.cnblogs.com/kingBook/p/6482964.html