如何显示收益回报的价值?
这是我的代码:
public void getTypeRoomb1(string buildingNUM){
StartCoroutine(getjsonroomtype1(buildingNUM));
}
public IEnumerator getjsonroomtype1(string buildingNUM){
WWW request = new WWW(mainurl+"json_typeroom.php?building="+buildingNUM+"");
yield return request;
if (request.error == null || request.error == "")
{
var N = JSON.Parse(request.text);
if(N["type"].Count < 1){
notFoundText = "Not found";
}else{
yield return N; // Value return this line.
}
}else
{
Debug.Log("WWW error: " + request.error);
}
}
我找到要返回值的行。如何显示值?
建议我plaese!