Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        XMLConfigParser partXMLConfig = new XMLConfigParser();
        //partXMl = partXMLConfig.LoadConfig<string, SpinEquipment>("PartXml", GetNodePath("Knit", "Circular", "danmianji"), "ShowName");
        //for (int i = 0; i < partXMl.Count; i++)
        //{
        //    var item = partXMl.ElementAt(i);
        //    Debug.Log(item.Value.ShowName);
        //    Debug.Log(item.Value.Name);
        //}

        //stepXml = partXMLConfig.LoadConfig<int, ChaiAnimation>("Step", GetNodePath("duobilongtou", "Zhuang"), "ID");
        //for (int i = 0; i < stepXml.Count; i++)
        //{
        //    var item = stepXml.ElementAt(i);
        //    Debug.Log(item.Value.ID);
        //    Debug.Log(item.Value.Info);
        //    Debug.Log(item.Value.tool);
        //}
        Vec3 vec3 = new Vec3();

        vec3.vec = new Vector3(1, 1, 1);
        vec3.id  = 1;
        step.Add(1, vec3);
        partXMLConfig.WriteConfig <int, Vec3>(step, "Step1", GetNodePath("564", "fsdf", "yuy"));
        step1 = partXMLConfig.LoadConfig <int, Vec3>("Step1", GetNodePath("564", "fsdf", "yuy"), "id");
    }