1234567891011121314151617181920212223242526272829303132 |
- using UnityEngine;
- using System.Collections;
- using System.Xml;
- public class ShopData
- {
- public int id;
- public string name;
- public string description;
- public string value;
- public int sort;
- public string price;
- public string ios;
- public string google;
- public ShopData(XmlNode node = null)
- {
- if(node == null)
- return;
-
- id = StringUtil.ToInt(node.Attributes["id"].Value);
- name = node.Attributes["name"].Value;
- description = node.Attributes["description"].Value;
- value = node.Attributes ["value"].Value;
- sort = StringUtil.ToInt(node.Attributes["sort"].Value);
- price = node.Attributes["price"].Value;
- ios = node.Attributes["ios"].Value;
- google = node.Attributes ["google"].Value;
- }
- }
|