예제 #1
0
	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 ());
					
			}
		}
	}
예제 #2
0
    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());
            }
        }
    }
예제 #3
0
	public IABSceneMgr(string sceneName)
	{
		mABMgr = new IABMgr (sceneName);
	}
예제 #4
0
 public IABSceneMgr(string sceneName)
 {
     mABMgr = new IABMgr(sceneName);
 }