Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ResetRecipes()
- {
- XmlNodeList recipeList = xmlDoc.GetElementsByTagName("recipe");
- foreach (XmlNode node in recipeList)
- {
- XmlNodeList content = node.ChildNodes;
- foreach (XmlNode recipe in content)
- {
- node.Attributes.Item(1).InnerText = "false";
- }
- }
- xmlDoc.Save("Assets/Resources/" + CONSTANT.RECIPEXML + ".xml");
- }
Add Comment
Please, Sign In to add comment