Esempio n. 1
0
        /// <summary>
        /// Adds the specs.
        /// </summary>
        /// <param name="list">List.</param>
        /// <param name="prop">Property.</param>
        /// <param name="attribute">Attribute.</param>
        private void AddSpecs(List<JSONFieldSpecs> list, PropertyInfo prop, JSONBaseAttribute attribute)
        {
            if (!prop.CanWrite) {
                UnityEngine.Debug.LogWarningFormat ("Property [{0}] does not have write access", prop.Name);
                return;
            }

            var specsData = attribute.Specs;
            specsData.Property = prop;
            list.Add (specsData);
        }
Esempio n. 2
0
        /// <summary>
        /// Adds the specs.
        /// </summary>
        /// <param name="list">List.</param>
        /// <param name="prop">Property.</param>
        /// <param name="attribute">Attribute.</param>
        private void AddSpecs(List <JSONFieldSpecs> list, PropertyInfo prop, JSONBaseAttribute attribute)
        {
            if (!prop.CanWrite)
            {
                UnityEngine.Debug.LogWarningFormat("Property [{0}] does not have write access", prop.Name);
                return;
            }

            var specsData = attribute.Specs;

            specsData.Property = prop;
            list.Add(specsData);
        }