ShopData.cs 714 B

1234567891011121314151617181920212223242526272829303132
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Xml;
  4. public class ShopData
  5. {
  6. public int id;
  7. public string name;
  8. public string description;
  9. public string value;
  10. public int sort;
  11. public string price;
  12. public string ios;
  13. public string google;
  14. public ShopData(XmlNode node = null)
  15. {
  16. if(node == null)
  17. return;
  18. id = StringUtil.ToInt(node.Attributes["id"].Value);
  19. name = node.Attributes["name"].Value;
  20. description = node.Attributes["description"].Value;
  21. value = node.Attributes ["value"].Value;
  22. sort = StringUtil.ToInt(node.Attributes["sort"].Value);
  23. price = node.Attributes["price"].Value;
  24. ios = node.Attributes["ios"].Value;
  25. google = node.Attributes ["google"].Value;
  26. }
  27. }