//解析返回的xml IEnumerator WaitXML() { yield return(new WaitUntil(() => xmlStr != "")); Debug.Log(xmlStr); //Camera.main.GetComponent<AssetManager>().textshow.text = " 购物车提交的数据:::: " + WriteXml._Instand.xmlStr; //向服务器发送数据 if (xmlStr != "" && xmlStr != null) { MsgCenter.start(xmlStr); StartCoroutine(LoadXML()); } if (MsgCenter.nowWidow == null) { MsgCenter.shopingTip.parent.gameObject.SetActive(true); MsgCenter.shopingTip.FindChild("tipText").GetComponent <Text>().text = "请先选择您心怡的那一套!"; } xmlStr = ""; }