Guest User

Untitled

a guest
Dec 14th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. private void ResetRecipes()
  2.     {
  3.         XmlNodeList recipeList = xmlDoc.GetElementsByTagName("recipe");
  4.         foreach (XmlNode node in recipeList)
  5.         {
  6.             XmlNodeList content = node.ChildNodes;
  7.  
  8.             foreach (XmlNode recipe in content)
  9.             {
  10.                  node.Attributes.Item(1).InnerText = "false";
  11.             }
  12.         }
  13.         xmlDoc.Save("Assets/Resources/" + CONSTANT.RECIPEXML + ".xml");
  14.     }
Add Comment
Please, Sign In to add comment