public IEnumerator ReadConfig() { WWW www = new WWW ("file://" + Application.streamingAssetsPath + "/QAB/iOS/resitems.xml"); mAllAsset = new Dictionary<string,string> (); mABMgr = new IABMgr ("res"); yield return www; if (string.IsNullOrEmpty (www.error)) { XmlDocument xml = new XmlDocument (); xml.LoadXml (www.text); Debug.LogError (www.text); XmlNodeList list = xml.SelectSingleNode ("config").ChildNodes; for (int i = 0; i < list.Count; i++) { mAllAsset.Add (list [i].Attributes ["abspath"].Value.ToString (),list [i].Attributes ["name"].Value.ToString ()); Debug.LogError (list [i].Attributes ["abspath"].Value.ToString () + ":" + list [i].Attributes ["name"].Value.ToString ()); } } }
public IEnumerator ReadConfig() { WWW www = new WWW("file://" + Application.streamingAssetsPath + "/QAB/iOS/resitems.xml"); mAllAsset = new Dictionary <string, string> (); mABMgr = new IABMgr("res"); yield return(www); if (string.IsNullOrEmpty(www.error)) { XmlDocument xml = new XmlDocument(); xml.LoadXml(www.text); Debug.LogError(www.text); XmlNodeList list = xml.SelectSingleNode("config").ChildNodes; for (int i = 0; i < list.Count; i++) { mAllAsset.Add(list [i].Attributes ["abspath"].Value.ToString(), list [i].Attributes ["name"].Value.ToString()); Debug.LogError(list [i].Attributes ["abspath"].Value.ToString() + ":" + list [i].Attributes ["name"].Value.ToString()); } } }
public IABSceneMgr(string sceneName) { mABMgr = new IABMgr (sceneName); }
public IABSceneMgr(string sceneName) { mABMgr = new IABMgr(sceneName); }