纳金网
标题:
求unity3d WWW委托回调写法
[打印本页]
作者:
她。
时间:
2013-3-1 09:12
标题:
求unity3d WWW委托回调写法
public void getWWWObj(string url, GameObject obj)
{
string Scname = "herohero.unity3d";
url = "file://D:/Unity3DWork/demo/";
StartCoroutine(DLAsset(url,Scname, obj));
}
public IEnumerator DLAsset (string url,string Scname, GameObject obj)
{
WWW www = new WWW(url+Scname);
yield return www;
obj = (GameObject)Instantiate(www.assetBundle.mainAsset);
}
求 如何给个回调函数把www反给回调函数
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5