Beispiel #1
0
        private void BuildParameters()
        {
            int hashCode = m_TrackableProperty.GetHashCode();

            if (hashCode != m_PrevDictHash)
            {
                m_Dict.Clear();
            }
            m_PrevDictHash = hashCode;
            int i = 0;

            for (int count = m_TrackableProperty.fields.Count; i < count; i++)
            {
                TrackableProperty.FieldWithTarget fieldWithTarget = m_TrackableProperty.fields[i];
                if (fieldWithTarget.target != null || fieldWithTarget.doStatic)
                {
                    string value = fieldWithTarget.GetValue().ToString();
                    m_Dict[fieldWithTarget.paramName] = value;
                }
            }
        }
        private void BuildParameters()
        {
            int hashCode = this.m_TrackableProperty.GetHashCode();

            if (hashCode != this.m_PrevDictHash)
            {
                this.m_Dict.Clear();
            }
            this.m_PrevDictHash = hashCode;
            int num2  = 0;
            int count = this.m_TrackableProperty.fields.Count;

            while (num2 < count)
            {
                TrackableProperty.FieldWithTarget target = this.m_TrackableProperty.fields[num2];
                if ((target.target != null) || target.doStatic)
                {
                    string str = target.GetValue().ToString();
                    this.m_Dict[target.paramName] = str;
                }
                num2++;
            }
        }