/// <summary>
        /// Is the attribute currently valid? A valid attribute will not be at the minimum value.
        /// </summary>
        /// <returns>True if the attribute value is currently valid.</returns>
        public bool IsValid()
        {
            if (m_Attribute == null)
            {
                return(true);
            }

            return(m_Attribute.IsValid(m_ValueChange));
        }
Example #2
0
        /// <summary>
        /// Is the attribute currently valid? A valid attribute will not be at the minimum value.
        /// </summary>
        /// <returns>True if the attribute value is currently valid.</returns>
        public bool IsValid()
        {
            if (m_Attribute == null)
            {
                return(true);
            }

            if (m_AutoUpdating)
            {
                if (m_Amount < 0)
                {
                    return(m_Attribute.Value > m_Attribute.MinValue);
                }
                else
                {
                    return(m_Attribute.Value < m_Attribute.MaxValue);
                }
            }

            return(m_Attribute.IsValid(m_Amount));
        }