private void AddSettingData(XmlDataList list) { AnimatorXmlSetting setting = new AnimatorXmlSetting(); System.Reflection.FieldInfo[] m_DataFields = setting.GetType().GetFields(); XmlClassData data = new XmlClassData { sLogicName = "AnimatorXmlSetting" }; foreach (var field in m_DataFields) { XmlParamItem item = new XmlParamItem { sName = field.Name, sType = field.FieldType.ToString(), sValue = "" }; data.Add(item); } list.SafeAdd(data); }
private void InitFBXFilesData(XmlDataList list) { m_xmlSetting = new AnimatorXmlSetting(); m_xmlDataList = new List <AnimatorXmlData>(); m_LayerDefaultState = new Dictionary <int, AnimatorState>(); foreach (var item in list) { if (item.sLogicName.Equals("AnimatorXmlSetting")) { SetLogicFieldInfo(m_xmlSetting, item); } if (item.sLogicName.Equals("AnimatorXmlData")) { AnimatorXmlData data = new AnimatorXmlData(); SetLogicFieldInfo(data, item); m_xmlDataList.Add(data); } } }