IEnumerator LoadXMLAsset(bool isinit) { yield return(new WaitWhile(() => xml == "")); List <CurtainManager> tempw = NewReadXml.ReplaceCurtainXml("bom_list", MsgCenter._instance.nowWidow.GetComponent <WindoManager>().GroupID, xml, true); if (tempw != null) { if (isinit) { Debug.Log("ddddddddddddddddddddddddddddddddddddd d" + isChuangLian); if (isChuangLian) { Camera.main.GetComponent <AssetManager>().LoadAsset(tempw); } else { Debug.Log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa d" + isChuangLian); Camera.main.GetComponent <AssetManager>().LoadAsset(tempw[0]); } } else { Camera.main.GetComponent <AssetManager>().LoadAsset(tempw); } } }
/// <summary> /// 加载单个的XML /// </summary> /// <param name="path"></param> /// <returns></returns> IEnumerator LoadXMLNew() { yield return(new WaitWhile(() => MsgCenter._instance.xml == "")); List <CurtainManager> _Data = NewReadXml.ReplaceCurtainXml("prod_list", MsgCenter._instance.nowWidow.GetComponent <WindoManager>().GroupID, MsgCenter._instance.xml, MsgCenter._instance.isModle); if (_Data != null) { SendMessage(_Data); } //SendMessage(CurtainData); }