Beispiel #1
0
        public void SaveXml(string pathName_, string prefabName_)
        {
            if (RootItem == null)
            {
                return;
            }

            XmlDocument    doc = new XmlDocument();
            XmlDeclaration dec = doc.CreateXmlDeclaration("1.0", "utf-8", null);

            doc.AppendChild(dec);
            XmlElement root = doc.CreateElement("root");

            root.SetAttribute("templateName", this.ragDollItem.name);
            root.SetAttribute("prefabName", prefabName_);
            doc.AppendChild(root);

            RootItem.SaveXml(doc, root);
            doc.Save(pathName_);
        }