public void AddModifier(ValueModifier m)
 {
     if (modifiers == null)
     {
         modifiers = new List <ValueModifier>();
     }
     modifiers.Add(m);
 }
 private int Compare(ValueModifier x, ValueModifier y)
 {
     return(x.sortOrder.CompareTo(y.sortOrder));
 }