public void CurrentDataNum()
 {
     for (int k = 0; k < 30; k++)
     {
         CurrentData = GetCharacteristic(k);
         num[k]      = CurrentData.Bool;
     }
 }
示例#2
0
 public void TransparencyLoad()
 {
     CurrentData = XMLCharInfoCharacteristic.Instance.GetCharacteristic((int)CUPV_CharacteristicName);
     if (CurrentData.Bool == 1)
     {
         Transparency.SetActive(false);
         BoolCheck = 1;
     }
 }
    public void LoadXml()
    {
        Characteristics = new List <XMLCharInfoCharacteristicData>();
        XmlDocument Document = new XmlDocument();

        Document.Load(filePath);
        XmlElement CharacteristicListElement = Document["CharacteristicList"];


        foreach (XmlElement CharacteristicElement in CharacteristicListElement.ChildNodes)
        {
            XMLCharInfoCharacteristicData Characteristic = new XMLCharInfoCharacteristicData
            {
                InherentNumber = System.Convert.ToInt32(CharacteristicElement.GetAttribute("InherentNumber")),
                //             Point = System.Convert.ToInt32(CharacteristicElement.GetAttribute("Point")),
                Bool = System.Convert.ToInt32(CharacteristicElement.GetAttribute("Bool")),
            };
            // Debug.Log(CharacteristicElement.GetAttribute("InherentNumber"));
            Characteristics.Add(Characteristic);
        }
    }
示例#4
0
 public void CurrentCharacteristicData(int _value)
 {
     CurrentData = XMLCharInfoCharacteristic.Instance.GetCharacteristic(_value);
 }
示例#5
0
 public void CurrentCharacteristicData(int _CUPV_CharacteristicName)
 {
     CurrentData = XMLCharInfoCharacteristic.Instance.GetCharacteristic_((int)_CUPV_CharacteristicName);
 }